Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OForm.ActiveControl Error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00091663
Message ID:
00091667
Views:
22
>In a tool bar linked to a specific form, I test for the type of the form's ActiveControl by:
>
>if upper(&oForm..ActiveControl.BaseClass) = "WHATEVER"
>
>However, I get an error message "Unknown member ACTIVECONTROL" if the currently selected control in the form is the Calendar ActiveX contol which is actually a sub-class I created (this my CalendarX.zip file in the Files, Classes/VCX section of the UT). How can I test if I can not use the ActiveControl property?
>
>TIA.

IF !TYPE(oForm+'.ActiveControl')='O'
* It's probably an activeX control ?
ENDIF

:0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform