Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OpenModalForm parameters
Message
De
16/10/2002 03:32:22
 
 
À
15/10/2002 18:59:52
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00711542
Message ID:
00711603
Vues:
9
Hi Mike:

>The OpenModalForm passes additional parameters by reference to the init of the child form. What does the code look like to receive those parameters?

The first argument is the class name or the form name you actually want to open. The second and subsequent arguments are passed to the form or class Init method (as specified in the first argument). So ...
cmStateManager.OpenModalForm('MyForm.scx', 'Hello', 'World')
Then, in MyForm.scx ...
Function Myform.Init(tcParm1, tcParm2)
   *-- Do what you want with the parameters.
   this.cMsg1 = m.tcParm1   && Receives "Hello"
   this.cMsg2 = m.tcParm2   && Receives "World"
Endfunc
HTH

Best
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform