Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behaviour for Activate event
Message
De
01/07/2003 21:33:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
30/06/2003 19:31:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00805179
Message ID:
00805921
Vues:
25
It is still possible that you have some setfocus() somewhere early in the code, which may trigger an .activate even before all the controls are up. So what Jim is saying may still apply.

>Sorry, now I see that I didn't describe a situation properly. 'Topic' is ActiveX which is placed on a form in design time. My point was that it should be already created with proper object handle before Activate comes. When I activate/deactivate a form which is already on a screen there is no need to do any checking for existence, but for the very first Activate this check is required for some reason ? I found this behaviour weird.
>
>>
>>A property can be of type object and still not hold an object reference. This would be a property of type object with a value of NULL. You can fix your code to handle this by doing the following;
>>
>>
>>...
>>IF TYPE('thisform.topic' ) = 'O'  AND NOT ISNULL(Thisform.Topic)
>>...
>>

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform