Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing args in goStateManager.OpenForm()
Message
 
To
12/08/2003 14:34:11
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00819499
Message ID:
00819530
Views:
13
Thanks, that helps alot. Certainly will be easier to experiment with the framework methods.

Matthew

>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
Opportunity is missed by most people beacuse it is dressed in overalls, and looks like work --- Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform