Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find out, if control is added during form's init or late
Message
 
To
18/04/2002 12:59:56
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00644956
Message ID:
00646888
Views:
23
Hi Dragan,

>PEMSTATUS(this.Parent,this.Name,6)
>It will return .f. for added objects, and .t. for objects already there.

I've just checked your solution. Works great for forms that are instantiated from a class. But when working with an scx, pemstatus always returns .F. But this is ok, since I'm currently working with form classes only.

I played with some other things as well, but I can't find an easy solution that can determine whether an object was added at runtime which also works in an scx. I think the way to go there will be to set a flag in the form, that's set to .T. at the beginning of it's Init and having the controls to check that property. Besides you have another idea ... ?

Thanks again,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform