Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a method return a value?
Message
De
20/04/2000 23:51:48
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00362123
Message ID:
00362125
Vues:
20
>Is something like this possible?
>
>ReturnVal = Form.SomeFunkyMethod

Methods can return values, but you need to replace "Form" in the above statement with "THISFORM" if called from somewhere inside the form itself, or with an object reference to the form if called from outside.

For example, outside of the form:
DO FORM yourform NAME oYourForm LINKED
ReturnVal = oForm.SomeFunkyMethod
oYourForm is an object reference to that instance of your form.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform