General information
Category:
Coding, syntax & commands
Title:
MessageBox in a loop!!!!
Hi Everyone,
Can someone please tell me why in the code below the MessageBox gets caught in a continuous loop. This code is being called in the Valid event of a TextBox. Surely, I'm missing something.
******************
local lnanswer
If Empty(This.value)
lnanswer=messagebox("First Name field cannot be blank",1,"Text Entry Error.")
Endif
If lnanswer = 2 && If the Cancel button is clicked back out of the record.
Tablerevert()
Thisform.flipenable
Thisform.Refresh
Endif
Return 0
******************
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only