General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only