Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters
Message
De
24/07/2006 11:02:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/07/2006 10:42:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01139173
Message ID:
01139194
Vues:
13
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform