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