Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass param by reference or private variable?
Message
De
02/10/2019 00:13:29
 
 
À
01/10/2019 19:00:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01671293
Message ID:
01671310
Vues:
50
>>It's worth noting that if you
>>
DO MYproc with m.myvar1,m.myvar2
>>
>>by default those variables are passed by reference, meaning you can update them in the proc. That might be clearer.
>
>That's demonstrably disprovable, John:
>
>
DO testfunc WITH TIME()
>? TIME()
>
>FUNCTION testfunc
>LPARAMETERS theTime
>    theTime = CTOT("12:15:00")   && Set the new time
>    RETURN
>
>
>:-) Oh c'mon. That was funny. :-)
Clever, Rick
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform