Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Calendar Active X with Today's Date
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00348489
Message ID:
00348679
Views:
21
Evelyn,

The OLEControl is a container object. It contains the ActiveX control. The Object property of the OLEControl refers to the object contained inside it. So,
Thisform.OLEControl.Width = 120  && sets the width of the OLEControl
Thisform.OLEControl.Object.Width = 120 && sets the width of the object
                                       && inside the OLEcontrol
In theory you only need to use the Object reference when there is confusion between the OLEControl and the Object inside of it, but I have found that using it whenever referring to the object inside does not cause any problems and it causes the code to be much more self documenting.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform