Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with a .show
Message
De
05/06/2001 23:42:53
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
05/06/2001 22:09:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00515509
Message ID:
00515569
Vues:
18
>Erik, thanks for your reply MyClass is definately a class. A container class to be exact.

I.e. since it doesn't have a .show method (see Gerry's reply), you show it by setting
MyObject.visible=.t.
but it will do you noo good, because MyObject as a variable (reference to your object) is a private or local to the method where you run htis code, so it will go out of scope and get destroyed. You should rather do ThisForm.AddObject({name_here}, {class_here}) to make it addressable as ThisForm.MyObject - it will be there until the form is there, or until you ThisForm.RemoveObject({same_name_here}).

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform