Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a method return a value?
Message
 
To
21/04/2000 09:10:43
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00362123
Message ID:
00362451
Views:
21
>>Type correction:
>>
>>>For example, outside of the form:
DO FORM yourform NAME oYourForm LINKED
>>>ReturnVal = o<b>Your</b>Form.SomeFunkyMethod
oYourForm is an object reference to that instance of your form.
>
>Forgot to mention, that to return a value, you have to add the () at the end of the call.
>
>RetVal = Form.SomeFunkyMethod()


Ahhhh!!!! It seemed so simple but wouldn't work. The () was what I was missing!!!! Never would have figured that out!
Is that in the docs somewhere?

Thanks a million guys!
Previous
Reply
Map
View

Click here to load this message in the networking platform