Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Works in VFP 7 but not in VFP 6
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00660000
Message ID:
00660053
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
Kirk,

In addition to Cetin's code, if you set each property individually, make sure that you set the .Day property to 1 first. Then set the Year and Month, then set the day to the intended day. Otherwise if the previous value of the day property is 31, when you are changing the month, you will get an error if the new month does not have 31 days in it.
thisform.olecontrol1.objECT.Day=1
thisform.olecontrol1.objECT.Month=MONTH(DATE())
thisform.olecontrol1.objECT.Day=DAY(DATE())
thisform.olecontrol1.object.Year=YEAR(DATE())
HTH,
Kurt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform