Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pcount equal to Parameter??
Message
From
23/03/1998 09:34:49
 
 
To
23/03/1998 05:00:17
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00086317
Message ID:
00086361
Views:
35
>Hi Justok,
>
>They are not quite exactly the same. PARAMETERS() returns the number of parameters passed to the last called procedure or function, but PCOUNT() returns the number of parameters passed to the Current procedure or function.
>
>e.g.
>PROCEDURE Test
>LPARAMETERS t1, t2, t3, t4 && if you passed 1 param in
>
>? PCOUNT() && Prints 1
>? PARAMETERS() && Prints 1
>
>*-- Now call another UDF
>= Test2( "abc", "jhjhgabchgkhgabckjhabc", 2)
>
>? PCOUNT() && Still prints 1
>? PARAMETERS() && Now prints 3
>
>FUNCTION Test2
>LPARAMETERS t1, t2, t3, t4
>
>RETURN
>
>
>Regards
>Mark Hall

Thanks...

Is it possible to KNOW what is the original Variable Name on passing parameter?!
e.g. you call MyFunc(abc)
the Function MyFunc not only KNOW abc value but also know the word 'abc' ?!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform