Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Save name of the calling form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00622735
Message ID:
00622754
Vues:
23
>>>Hi everybody,
>>>
>>>I was using this code in Form's load:
>>>if type('_screen.ActiveForm.name')='C' && There is another active form
>>>   this.CallingFormName=upper(_screen.ActiveForm.name) && Called from some other form
>>>else
>>>   this.CallingFormName=''
>>>endif
>>>
>>>However, it returns "", though form is called from another form. Is there another way to know, what form is called from another form?
>>
>>Just a guess, have you try PROGRAM()?
>
>Not sure, how to use it to determine the name of the calling form. I tried wait window program() and it returned MyFormName.Load I need the previous form name.

Program(1) should return somethign like "form1.command1.click()", from there you will be able to parse the form name :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform