Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behaviour for Activate event
Message
From
01/07/2003 21:33:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/06/2003 19:31:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00805179
Message ID:
00805921
Views:
24
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform