Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox in a loop!!!!
Message
From
18/10/2001 10:07:47
 
 
To
17/10/2001 23:25:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00570063
Message ID:
00570222
Views:
23
Hi Eric;

Try it !!
procedure valid
* creat thisform.lnanswer
*
If Empty(This.value)
   thisform.lnanswer=messagebox("First Name field cannot be blank",1,"Text Entry Error.")
Endif
Thisform.Refresh
*Return 0  && <- the problem was here
return
endproc
procedure refresh
   If thisform.lnanswer = 2 && If the Cancel..
      Tablerevert()
      Thisform.flipenable
   Endif
endproc
>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.
******************
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform