Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GotFocus
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00354241
Message ID:
00354377
Views:
19
ActiveControl will not point to an object until the Init has finished and the Activate has been run. You should be able to trap this with the Type() call as Mike said. I had this last week, will try to remember what caused it but I think it was the form going out of focus.

>The error is: " activecontrol is not an object"
>
>The documentation says it generates an error if the control being referenced is not enabled. I have code to test the validity of the control that ensures it's not null. The error persists.
>
>
>>>But activeControl.property generates an error when the form is first launched. But works fine there after. Any ideas why and how to resolve this. Or any better ideas of achieving this?
>>
>>What is the error? What else dose it say? Make sure Type('thisform.activecontol') = 'O' before you use it, does that prevent the error?
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform