Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How many parameters do i have
Is there a function to tell me how many parameters have been passed to the function from the call. If I have a function tom with 4 parameters, 2 of which are declaired as optional:
public tom(a as string, b as string, optional x as integer, optional y as integer)
And in another function bob I say:
tom "sam", "joe"
Is there a function that will return 2, the number of params passed.
Or a function I can use on the third param name that will tell me if a value was passed for it.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement