Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy array in variable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00649271
Message ID:
00649277
Vues:
17
Which VFP version you're using?

In VFP6 and earlier I would do:
local array myArray[1]
lnElements=myFunction(@myArray)

myFunction
lparameter taArray
external array taArray
dimension taArray[5,10] - redimension it
........
return myNewNumber
In VFP7 function can return an array and you don't have to declare it before call of the function.



>Hi everybody,
>
>I try to do the following :
>
>Local MyVariable
>MyVariable = MyFunction()
>
>
>MyFunction will return an array, but I don't know how much items there will be in my array. Am I better to use an object for that or there is a way to do it the way I try to do it ?
>
>Thanks in advance !
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform