Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you pass parameters to a METHOD from a FORM?
Message
 
To
31/01/2001 09:51:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00470601
Message ID:
00470603
Views:
27
To pass a parameter to a method:

THISFORM.MyForm(param1,param2)

and in the method include a LPARAMETER statement

Bob

>I have a method called mymethod() and in the VALID event of my form, I want to called Mymethod() and pass THISFORM.MYFLD.VISIBLE = MYVAR –
>Mymethod with look like this –
>* MYVAR = false or ture
>If myvar = .t.
> Thisform.my.myfld.visible = .t.
>else
>Thisform.my.myfld.visible = .f.
>endif
>
>I am use to calling functions with args.
>but calling methods from a FORM are different - any ideas?
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform