Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing args in goStateManager.OpenForm()
Message
From
12/08/2003 14:34:11
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00819499
Message ID:
00819521
Views:
14
This message has been marked as the solution to the initial question of the thread.
The "arguments" are parameters passed to the form's init method. You have to setup code to deal with each parameter in the form's init method.

if in your myform.init method you have
lparameters m.p1,m.p2
dodefault()
if m.p1='append blank'
     thisform.new() &&adds a new blank record to the form's workarea
endif

&m.p2    &&turns the form's visible property on or off
Normally I dont pass the entire function that I wish to envoke.
For instance I would have passed a logical value m.lappend
if it is true then append blank
if it is false then dont append.

But there is no reason why you couldnt do that if you wish, especially if you use variable replacement as per &m.p2
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform