Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mscomctl2.DatePicker.2
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00312856
Message ID:
00312888
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform