Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a method return a value?
Message
 
À
21/04/2000 09:10:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00362123
Message ID:
00362451
Vues:
20
>>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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform