Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 issues
Message
From
07/01/2000 09:26:52
 
 
To
07/01/2000 09:14:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00314435
Message ID:
00314444
Views:
23
>I've got 2 situations I'm a little confused with. First, how do I control the >valid event within a textbox on a form and the user wants to exit the form >instead of satisfying the valid. The valid keeps firing false and preventing >the form from closeing. Second, can I use multiple fields with a combobox set >as a dropdown list ? I keep getting an field error when I include more then 1 >field.

Well, your second problem I can recreate, but am not sure how to fix. As far as the first one, I have a few ideas. One would be to set a condition in the valid that will allow the valid to evaluate to true, such as:

if !empty(this.value)
&& Do your stuff
endif

this way, if the textbox is left empty, nothing in the valid will be evaluated, and the user can exit.

My other thought on that topic is to add a shortcut key to your exit button. For example, if your caption on the button is 'Exit' change it to 'E\
Either way, or both should work for you.

Paul A. Busbey
I.S. Department
Sparagowski & Associates
Paul A. Busbey
Victoria Insurance
Previous
Reply
Map
View

Click here to load this message in the networking platform