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:
00622764
Vues:
31
This message has been marked as a message which has helped to the initial question of the thread.
>>>Program(1) should return somethign like "form1.command1.click()", from there you will be able to parse the form name :-)
>>
>>It returns MyCurrentForm.Load. It doesn't return my previous form name. Besides, what if this form is called from the program and not from the form...
>
>PROGRAM(1) return the name of the calling program, if its a form, the form name was before the first dot, otherwise it should not be a dot in the return value.

As zlatin said, use PROGRAM(PROGRAM(-1)-1) instead of PROGRAM(1) :-)
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