Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VALID not working
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
VALID not working
Divers
Thread ID:
00367130
Message ID:
00367130
Vues:
49
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform