Product: LABELVIEW, CODESOFT
Version: LABELVIEW Gold and CODESOFT Enterprise 2014 and later
|
1. In the image below, we have created the two When printed fields and added the Scan Part No to our label.
2. Next, we will go to File > Properties > Visual Basic Scripting tab. Check the checkbox to Activate event call. Below is the script that I have entered, you can change the variable names DB Part No and Scan Part No to different variable names for your own use.
if document. Variables.Item("DB Part No").Value = document.Variables.Item("Scan Part No")
else
Msgbox ("Enter your message here")
cancel = true
end if
3. If Scan Part No does not match the value of DB Part No, we get the following message when we attempt to print.
|