Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find out, if control is added during form's init or late
Message
 
À
18/04/2002 12:59:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00644956
Message ID:
00646888
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform