Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pcount equal to Parameter??
Message
De
23/03/1998 10:07:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/03/1998 09:43:15
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00086317
Message ID:
00086381
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform