KB-38308: Requesting confirmation before writing on a tag.

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

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

,

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *