>>>When I run my form, it gives me an error message saying THISFORM can
>only
>>be used in a method.
>>>Anyone know why??
>>
>>the function is not a part of the form, so you must specify the form name
>
>>instead of using thisform...
>
> or at least the active form (_screen.activeform)
>
>Arnon
Try this:
in your form:
=MyFunction(ThisForm)
in your function:
FUNCTION MyFunction
LParameters oFormRef
SCAN
oFormRef.PropertyX = "Who cares?"
...
ENDSCAN
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca