Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendar
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00454152
Message ID:
00454277
Views:
23
>Ahh, the problems of multiple controls. I use the MS Monthview control that does have the 3 properties exposed at the control level and the Values property at the .Object level. I should have been more specific. Thanks.

Mark and others,

It is NOT the ActiveX control that controls this issue, it is VFP. The OLEControl has properties and the ActiveX inside of it also has properties. In the docs it says you can use OLEControl.Property for any properties of the ActiveX that are not also properties of the OLEControl, but under certain conditions this fails. With the Value property it may VFP confusion since Value is a property of many VFP objects (but not he OLEControl).

One can address the properties of the contained activeX object either by using the OLEControl.Property or the OLEControl.Object.Property, Object is a property of the OLEControl that holds a reference to the contained ActiveX object. Since OLEControl.Object.Property always works while OLEControl.Property will work sometimes and sometimes not, I suggest ALWAYS using the Object property to reference the ActiveX object.
Previous
Reply
Map
View

Click here to load this message in the networking platform