Question:
How can I request the user to confirm before writing on a tag?
Solution:
To do so, you must use MessageBox() function. Then, depending on the answer returned by the MessageBox(), the writing is performed or not. In the example below, when 6 (Yes) returns, the writing is performed on the tag:
IF MessageBox(“Are you sure?”,”Warning”, 1004h) == 6
//The user confirmed, so write on the tag
Else
MessageBox(“Writing canceled.”)
End IF