Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pcount equal to Parameter??
Message
From
23/03/1998 10:07:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/03/1998 09:43:15
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00086317
Message ID:
00086381
Views:
30
>If the reason for knowing the name of the input variable is so that you can change the variable, then it is not necessary, you can simply pass the variable by reference :-
>
>lnValue = 0
>TestProc( lnValue) && by default, passed by reference
>? lnValue && Should print 999
>
>FUNCTION TestProc
>LPARAMETERS tnParam1
>tnParam1 = 999
>RETURN
>
>Regards
>Mark.
>
>p.s. Sorry if you already know this.
Mark,
Did I miss something. In your example parm would pass by value by default.
lnValue = 0
TestProc( lnValue)     && by default, passed by <b>value</b>
? lnValue  && Should print 999 (0 I expect)
TestProc(@lnValue)     && passed by reference
? lnValue  && Should print 999
do testproc with lnValue && passed by reference by default
? lnValue  && Should print 999


FUNCTION TestProc
LPARAMETERS tnParam1
tnParam1 = 999
RETURN
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform