Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to validate dates? (month and day only)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00457589
Message ID:
00457598
Vues:
23
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform