>Hi,
> I have a method in class which will return certain value to mycommand button after doing some task. I got an error message while run it.
> Error: "'MyMethodName' is an event, method or object"
>
> If I place LPARAMETER in that method, problem solved even no value passed into.
> Is it meant that class's method cannot return value if it doesn't receive parameter?
>
In all porbability, Fox wants you to add parentheses to the end of the invocation string if you're doing an assignment; IOW if you currently do
cSomeRandomVariable = oMyObj.MyMethod
and it gives this error, try:
cSomeRandomVariable = oMyObj.MyMethod()
instead.