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:
00649333
Vues:
21
>Thanks a lot Nadya,
>
>It works like that.
>
>Is my idea good to create an object in MyFunction and return it to MyVariable ? For me there's no difference since I do it from scratch and the code does not appear to be more complicated in any way, so I will choose the better way !
>
>Thanks again
>
>Regards

I would create an object in the calling procedure and update its properties in the function. I would pass this object into the function, e.g. (untested idea)
myMain program

myObject=newobject(...)
=myFunction(myObject)
?myObject.myArray[1]

function myFunction
lparameter toObject
toObject.AddProperty('myArray[5]')
...
return
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