Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get name of the form in LOAD method?
Message
 
 
À
22/01/2013 06:33:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01563533
Message ID:
01563601
Vues:
49
>>Hi,
>>
>>I am calling a procedure from LOAD method of a form class. Without passing a name of the form class or some other information, can the called procedure know the name of the form? or some other piece of information that would help "locating" the called form/class?
>>
>>TIA
>
>
>Examining the call stack's current (top entry using sys(16) or program()) should give you the path back to the vcx or scx being executed for load(), and therefore instantiated. From that information, worst case, you could open the vcx or scx as a shared table, locating there everything except the instance name.
>
>The instance name is then available in init.

As I mentioned to others, I decided not to log the form name where the call was initiated.
Thank you for your suggestion.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform