Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing users to enter four digit years
Message
From
04/03/1999 13:32:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Forcing users to enter four digit years
Miscellaneous
Thread ID:
00194116
Message ID:
00194116
Views:
50
I'm trying to create a date class (VFP 5.0) text box that forces a user to to enter a four digit year. I thought it was going to be a piece of cake and I will knock one out in no time. I have found that I cannot trap the number of digits the user keyed in in the *valid* because FoxPro will automatically force it to 8 digits. If I try to trap it in the *keypress* I run into other problems. What if the user pressed *delete* or *backspace*? What if the user pressed *delete* or *backspace* with no text in the text box?

Has anyone invented the wheel?
Ernest
Next
Reply
Map
View

Click here to load this message in the networking platform