Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter array
Message
De
09/11/2011 11:07:21
 
 
À
09/11/2011 09:34:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 7
Divers
Thread ID:
01528475
Message ID:
01528491
Vues:
68
Thomas:

Please see Sergei's answer.

I wanted a solution that allows me to pass a bunch of parameters NOT an array.

Thanks,

Yossi

>function callme (aPara)
>
>....
>local aPara[4]
>= callme(@aPara)
>
>
>
>>Tore:
>>
>>Sorry for the confusion. apara does not exist. I was hoping that there is a similar function in VFP, so I provided pseudocode to show what I'm looking for. I'm asking if there is any way to reference the parameters in an array-driven way.
>>
>>Thanks,
>>
>>Yossi
>>
>>>Must be on your machine only, I get an error, "File 'apara.prg' does not exist."
>>>
>>>>Hi All:
>>>>
>>>>Is there a parameter array?
>>>>
>>>>
>>>>foo('one', 'two', 'three')
>>>>
>>>>return
>>>>
>>>>Function foo(dog, cat, hen)
>>>>
>>>>? aPara(1)   &&displays 'one'
>>>>? dog           &&displays 'one'
>>>>? aPara(2)   &&displays 'two'
>>>>? aPara(3)   &&displays 'three'
>>>>
>>>>
>>>>return
>>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform