Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo validation problem
Message
From
11/02/2005 20:04:54
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combo validation problem
Miscellaneous
Thread ID:
00986220
Message ID:
00986220
Views:
49
Using VFP 6/7/8 (I haven't checked with 9 yet) I am having a problem with values returned from a combo.valid() event. If a textbox.valid() returns .F., focus stays with the textbox and the original value is automatically restored. With combo.valid(), if .F. is returned the value stays at the new (invalid) value, and I have to restore the original value with some code like this.value=this.origvalue before leaving the validation code.

I've tried returning 1 and 0 instead of .T. and .F., but this doesn't seem to make any difference. Combo.style=2 (dropdown list).

Has anyone idea what may be happening here, and how to solve the problem? Any help would be appreciated.

Alan
Next
Reply
Map
View

Click here to load this message in the networking platform