>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