Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding Top-Most Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01239978
Message ID:
01239983
Vues:
6
I am refering to that project I sent you earlier.

SYS(1272) returns the hierarchy from a known object. Thing is, I
don't know the object. That's what I want - a ref to the top-most
object.

I might have that class on _Screen or on a Form. I need a reference to
the _Screen object or the Form object, depending on which on the
class is on.

I could to:
  IF TYPE("ThisForm") = "O"
    oParent = ThisForm
  ELSE
    oParent = _Screen
  ENDIF
But I was wondering if there was a more elegant way.

Thanks




>>I need to get a reference to the top-most object in the object hierarchy from
>>no matter what object I'm in.
>>
>
>Would SYS(1272) work for you?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform