Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Salut Francis,
In your Valid(), insert the following at the top:
IF LastKey() <> 27
*-- Do the validation
ENDIF
Be sure that the command button as Cancel = .T.
HTH
>I have the following problem
>
>I created a form with a text box and a command button to leave the screen.
>
>In the valid clause of my text box, i put the following code
>
>if empty(myfield)
> messagebox("This field is mandatiory......")
> return 0
>else
> return 1
>endif
>
>The problem is i want to quit the form when i click on my button even if myfield is empty, but in my example i can not leave the screen.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement