Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simply Amazed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00004015
Message ID:
00004021
Vues:
32
from the help file on calling methods:
Methods that return values and are used in expressions must end in open and closed parentheses. For example, the following statement sets the caption of a form to the value returned from the user-defined method GetNewCaption:

Form1.Caption = Form1.GetNewCaption( )

it looks as though you could return .f. from MyMethod and skip that code...

>Don't ask me why I think this so kool, maybe because I never tried it before. But I did this one with the Scope Resolution Operator tonight & it worked! I think...
>
>if MyObject::MyMethod()
> ...
>endif
>
>I just thought it was a stand alone command that did not return a value!
>
>Simply Amazed,
>Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform