Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mandatory field, not xxxx
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01342883
Message ID:
01342889
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform