Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I make the user enter the complete year in a date fi
Message
From
06/01/1999 12:01:19
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173130
Message ID:
00173184
Views:
22
>I have century on and am using the rollover function, but our client (big money client) insists that I make the date fields so the user has to enter the complete date 02/19/1998. Right now I am using a text field with a controlsource being a date field from the table/view. Does anybody have a clue how I can do this. I've tried checking the length of the field on valid and it has already changed it to the full length. VFP 5
>
>Thanks
>kirk


I just test the characters after the last "/" to make sure there are not less then 4. I'm sure this is not the best way, but its simple.

len(allt(thisform.txtDate.text)) - rat("/", allt (thisform.txtDate.text)) < 4
Scott Dinwiddie
Previous
Reply
Map
View

Click here to load this message in the networking platform