Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DTPicker error
Message
De
31/08/2006 05:14:11
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01149962
Message ID:
01150079
Vues:
26
>hey experts,
> i keep getting this error "OLE IDispatch exception code 0 from DTPicker: Invalid Property Value."
>
>i have the following code in the INIT event
>
>thisform.dtp1.day=DAY(DATE())
>thisform.dtp1.month=MONTH(DATE())
>thisform.dtp1.year=year(DATE())
>
>I read on the msdn site that if a value is assigned that creates an invalid date, one of the error messages above appears. This behavior occurs because the DateTimePicker control does not recognize {" / / "} as a valid date. In the DTPicker properties i have checked the format and everythings fine.The 'customformat' propery is set to "none"..
>im stumped!!

Hi
Maybe, after first line, the result is an invalid date ( like {2006-31-04} )
Try to reset day,month to 1 first
thisform.dtp1.day = 1 
thisform.dtp1.month = 1
thisform.dtp1.year=year(DATE())
thisform.dtp1.month=MONTH(DATE())
thisform.dtp1.day=DAY(DATE())
Or try my download# 25398
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform