General information
Category:
Forms & Form designer
Assuming that the command button has Cancel = .T.:
IF LastKey() = 27
RETURN .T. && Skip the validation
ENDIF
HTH
>i have a text box on a form that uses a valid event, if i simply want to exit the form without the box being validated i cannot quit the form until i put data in the text box that fulfills the valid event. i am using a command button that executes, thisform.release, on click event.
>i would like the fist line of code in the valid event procedure to check to see if this exit command has been clicked. if clicked the valid event would be bypassed.
>i know what i want it to do but i do not know the syntax, i tried the following code - if not thisform.exit - but does not work. can anyone help me with the syntax.
Previous
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