Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mandatory field, not xxxx
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01342883
Message ID:
01342889
Vues:
17
>I have a mandatory field
>
>Besides not empty() I also want to warn user not to type things as
>
>xxxxxxxxxxxx, - - - - - - -- -, aaaaaaaaaaaaa
>
>Most of time they will tend to use repeated letters
>
>Is there any tip ?
>
>
>Moises
lcLetter = left(this.value,1)
lcVal = rtrim(this.value)
if m.lcVal== replicate(m.lcLetter,len(m.lcVal))
    messagebox("I don't think you should be doing this!") 
endif
BTW, where all VFP nice coloring go, Michel?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform