Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect that control is added in run-time
Message
From
19/09/2000 11:58:32
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00418065
Message ID:
00418103
Views:
24
>Is there way to detect in control's Init method code that control added in run-time? For example:
>
> procedure Init
> lAddedInRuntype = ????
> if lAddedInRuntype
> ... special actions
> endif
> endproc

One idea...
At the end of your base form's Init() set a custom property lInitFinished = .T.
Default this property to .F.
In each control's base class (i.e., your base classes) check for form.lInitFinished = .T. - if it is, it was added at run time.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform