Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Event in a TextBox
Message
De
22/01/1999 12:43:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00179019
Message ID:
00179043
Vues:
26
Nope, nothing. I've placed a MessageBox in the loop and it shows that it gets to the else. I assume that it's returning a .t. but I may be wrong. BTW I'm using VFP3.0b.

>I see. That is odd. Are you positive it is in fact returning .T.? You don't get the dialog box?
>
>>The problem is when it returns .t. it still remains in the TextBox. I can't get our.
>>
>>>This is normal behavior when you return .f. in the valid event. What is it you'd like to happen when an invalid entry is made?
>>
>>>>lcID = alltrim(this.value)
>>>>
>>>>locate for alltrim(drawing.id_no) = lcID
>>>>if found()
>>>> =MessageBox(lcID)+' already exists!')
>>>> return .f.
>>>>else
>>>> return .t.
>>>>endif
>>>>
>>>>For some reason that's beyond me (at least at the moment) it won't tab off if the id doesn't exist in the table, in fact it's pretty difficult to get it out of the TextBox once entered. The same basic process works in a grid on the same form. What am I missing?
Jim Philippi

quando omni flunkus moritati
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform