Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if an object exists
Message
De
10/05/1998 06:21:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
09/05/1998 13:35:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00098172
Message ID:
00098357
Vues:
36
>After some chat with you, now I also agree that TYPE([oControl.Name]) = "C" is enough. As I learned :
>- Scatter name oName wouldn't be treaded like a real object.
>- And with that exception Name property cannot be prevented to be seen.
>Cetin

Scatter Name oAnything - has anyone succeeded having this do something useful? I've played with it for a while, hoping to have an object like that to keep me olde values of all the open tables in a form, but I couldn't get this object to belong to a form at all - if it already belongs to a form, it won't scatter; if it doesn't, it becomes a private var to the method which created it, and I sure wouldn't like to make it a public var. With VFP completely lacking object cloning, this object can't be kept at all - trying to copy it to a form's member creates just a referrence to this oAnything, and goes .null. as soon as the method which created it exits.

Has anyone managed to work around this? I have found not a workaround, but a much better solution for my particular case, but in general, I think I may use this Scatter Name somewhere, IF it behaved.

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