Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass param by reference or private variable?
Message
From
02/10/2019 00:13:29
 
 
To
01/10/2019 19:00:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671293
Message ID:
01671310
Views:
51
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform