Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenModalForm parameters
Message
From
16/10/2002 03:32:22
 
 
To
15/10/2002 18:59:52
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00711542
Message ID:
00711603
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform