Sorry should be
THISFORM.MyMethod(param1,param2)
Also, why not include your code right inside the VALID
THISFORM.my.myfld.VISIBLE = THISFORM.myfld.VISIBLE
HTH but I don't see exaclty what you are trying to achieve??
Bob
>>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?
>---
>hi Bob...
>By "THISFORM.MyForm(param1,param2)" do you mean -
>THISFORM.Mymethod(param1,param2)?
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'