Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VALID not working
Message
From
07/05/2000 21:47:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
VALID not working
Miscellaneous
Thread ID:
00367130
Message ID:
00367130
Views:
50
Hi everyone,

Can anyone help? I have the following code in a standard combobox.

If LastKey() = 27
Return .T.
Endif

If Empty(This.value)
Messagebox ['This field cannot be blank',0+16, 'Input Error']
Return 0
Endif

If This.Value = "01"
WAIT WINDOW [ False ]
Return .F.
ELSE
WAIT WINDOW [ True ]
Return .T.
Endif

The combo contains a list of keyed in data. If I select anything other than "01" I see the message 'True' but the cursor will not move to the next input field. There is no code in the 'Lost Focus' event and I have tried Return 1 which sometimes works but not always.

TIA
Chris.
Next
Reply
Map
View

Click here to load this message in the networking platform