You need to pass the array by reference.
lxRetVal = MyFunction(@MyArray)
>Hi i know this is a stupid question but i nevertheless could not find an answer to my question in the internet.
>
>What i wanted to know is that is there a way to pass an array parameter to a function ?? If so how ? :)
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer