Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate dates? (month and day only)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457589
Message ID:
00457598
Views:
22
>A user enters a day in a spinner. They then choose a month from a combobox. They do not enter a year. Is there an
>easy way to tell if the month/day combination is valid?
lcDay = STR(Myspinner.value)
lcMonth = STR(cmbMonth.List[ ListIndex ])
dDate = ctod(lcMonth+"/"+lcYear+"/"+str(year(date())))
If the ldDate is empty you know the date is invalid.
Previous
Reply
Map
View

Click here to load this message in the networking platform