Click to See Complete Forum and Search --> : array to sub


pixie77
May 7th, 2001, 08:39 PM
Hi,
i wonder how can i use array as a value to be sent to sub
like:
public sub (array)
...
end sub

i need the syntax as well.
TIA

cksiow
May 7th, 2001, 10:35 PM
say you want to sent array of string

publib sub test(s() as string)
..... code
end sub

call the sub, like this

dim s() as string
redim s(10) 'set to 11 elements

test(s)

HTH

cksiow
http://vblib.virtualave.net - share our codes

pixie77
May 9th, 2001, 04:35 PM
Thanx !!!