Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Class's Method cannot return value?
Message
From
07/07/1999 10:03:53
 
 
To
06/07/1999 23:37:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00238098
Message ID:
00238259
Views:
11
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform