KB-18907: Checking WriteRecord() command’s execution.

Question:

How can I check if the WriteRecord() command was successfully executed?

Solution:

To do so, you must pass the command’s return to an auxiliary variable, and execute an IF command to check the result. For example:

dim aux

aux = Hist1.WriteRecord()

If aux == 1     // writing ok
  MessageBox(“ok”)
ElseIf aux == 0     // writing is not ok
  MessageBox(“it is not ok”)
endIf

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 *