Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping focus w/out valid event
Message
 
À
03/02/2005 15:40:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00983625
Message ID:
00983658
Vues:
16
"REVISED"
It's important to note that the users should be allowed to edit the textbox if: the following conditions:
-textbox is blank
- textbox has cordate value in it
- not be allowed to edit if value other than cordate.
- Any other date than cordate is NOT valid
-a fine mess


>In valid:
>Return !(this.Value<>cordate AND LEN(ALLTRIM(this.Value)) =5)
>
>>I have tried this code in a textbox's interactive change event but focus goes to the next textbox :-( Reason I am going this route is because if the texbox is empty, user is allowed to modify.
>>
>>IF this.Value<>cordate AND LEN(ALLTRIM(this.Value)) =5
>>this.setfocus
>>EndiF
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform