Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters
Message
From
24/07/2006 11:02:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/07/2006 10:42:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01139173
Message ID:
01139194
Views:
12
>hi
>a question...
>how can i pass parameters between forms , i have form1 and form2
>i want in form2 to be able to call a property of form1 , i already
>put a new property in form1 , and try to call it form form2 like form1.propertyName
>but i it says it dosnt recogniza the alias.
>what can i do

Form1, or in general the Name property, is not a globally accesible name.

In Form1:
do form Form2 with ThisForm.PropertyName
In Form2:
* Init method:
lparameters tnSomeProp && Naming assumes it is of type numeric
ThisForm.AddProperty("nSomeProp", tnSomeProp)

* Later, in any method of form:
MessageBox("Property from other form: " + trans(ThisForm.nSomeProp))
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
Next
Reply
Map
View

Click here to load this message in the networking platform