Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mscomctl2.DatePicker.2
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00312856
Message ID:
00312888
Vues:
18
>I put the control in a class I looked at the properties associated with that class and there is no Value property. Before I looked at the properties I needed to set the initial value of the object so in the init of the object I put This.Value = DATE() you get the idea. When I run on the development machine it works like a dream. But when I run the form on a machine w/o VFP it comes up with Property "VALUE" not found. Called from form.object.init.

You need to use the word OBJECT in your reference:

thisform.oDateTimePicker.Object.Value = DATE()

So if it's in your DT picker object's Init method, it could just be:

this.Object.Value = DATE()

This works for me.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform