To follow up on your specific issue, you probably need to do
$myRefVar.Value.Add inside your function to get it to work. When working
with reference variables, you need to use .Value to get the actual variable
that is being referenced so that you can call methods, assign values, etc.
--
Kirk Munro [MVP]
Poshoholic
http://poshoholic.com
"RD" <RD@xxxxxx> wrote in message
news:B280F97F-5ECF-4CA9-BF2C-6704F51AC00D@xxxxxx
Quote:
> I'm trying to pass ArrayList as [ref] to a function without any success. I
> tried .Add which fails because [ref] deosn't have Add method. I tried
> casting
> but to no avail. Does any one have any sample code? thanks.