Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5: SetFocus
Message
From
01/05/1997 23:30:33
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
VFP5: SetFocus
Miscellaneous
Thread ID:
00030568
Message ID:
00030568
Views:
100
Hi All,

If data entered in a combo box is not valid, how should I set cursor staying in the combo box until it is valid.

I used the following code in the Valid method:

If !SEEK(code, "codetable")
wait window "Not valid code"
RETURN .F.
ENDIF

I thought if I use RETURN .F. the cursor will not leave but it does not work. Could anybody tell me why?

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform