Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unlimited number of parameters
Message
 
À
26/01/2005 17:56:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00981000
Message ID:
00981024
Vues:
40
I just did a little test. If the passed parameter count is less than the received count (in the UDFs parm list), then the trailing parameters are false. If more parameter are passed than declared in the receiving UDF an error message is pushed.

If there is nothing between the commas the receiving UDF will read the "empty" parameter as a false.

We were talking about this regarding multiple return parameters a while back. You could put the parameters in an object and then verify the state by evaluating what the object has in the store.


>I have an application that will receive an unlimited number of parameters. In VB.NET, I can have:
>
>
>    Sub Main(ByVal CmdArgs() As String)
>
>
>to define the entry parameters and have as much as I want.
>
>But, in VFP, I don't know if the same can be obtained. Is the only way to define, for exemple, up to 20 parameters, and verify each of them until I find one that is not passed? This approach would be like creating a long buffer of parameters in order to respond to an unlimited number of parameters being passed. Is that the only way or there is a VB.NET like mechanism?
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform