Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pcount equal to Parameter??
Message
De
23/03/1998 09:34:49
 
 
À
23/03/1998 05:00:17
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:
00086361
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform