Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where it proceeds
Message
From
04/11/2005 23:42:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01065687
Message ID:
01065688
Views:
19
>am I executing a form, from the menu and from another form how I can know, in the moment in that I execute it of where it proceeds?

I don't think there is an easy way to obtain this information. I would just pass a parameter to the form, depending on what you want to do later on:
* Call up form
do form MyForm with "Option 1"

* Form Init(): Save parameter
lparameters tcFormOption
ThisForm.AddProperty("cSomeOption", tcFormOption

* Use the parameter in any part of the form
if ThisForm.tcFormOption = "Option 1"
  ...
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform