Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I suppress the valid method from firing?
Message
From
20/09/2002 13:57:34
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00702841
Message ID:
00702870
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
Before you call the popup form, set a form property. In valid(), check that form property...and bypass the validation code if necessary.

>Hey Tracy,
>
>Thanks for your input. I like your idea of passing varread() as a parm to pop_fields instead of evaluating varread() on each case statement ... probably give a bit better performance.
>
>However, I don't think I explained my issue very well. What I'm really struggling with is the fact that if I call messagebox() in my popup routine for a given field, that field's valid event is not fired but if I call a popup form in the popup routine, the field's valid event is fired before my popup form runs.
>
>In other words, my field considers itself to have lost focus when I call a popup form (and fires a valid event) but not when I call messagebox(). I really want to know what keeps the field from loosing focus when a messagebox is displayed and if I can create that same behaviour in a form.
>
>Once again, thanks for the idea on the passing of varread(). I like that.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform