Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GotFocus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00354241
Message ID:
00354935
Vues:
12
The error actual occurs on this line: IF Type('thisform.activecontol') = 'O'

Not all the time only when the form is first load. It runs fine thereafter. The error is ACTIVECONTROL is not an object





>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?
Mathias Banda

Time is longer than a rope.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform