dve83
11-20-2005, 09:20 AM
lets say ive got this (for the sake of argument)
public function getdata(names() as string) as string
label.caption = names(1)
end function
lets say I want to call this function and send it an undetermined number of values for the array. : I thought Id changer the header so it has a "number" parameter as well and the redim the array in the function body. like so:
public function getdata(number as integer,names() as string)
redim names(number)
end function
any thoughts?
ok second (and actual question): If I want to call this function, how can I send the data to the formal array parameter without sending another array? Is their some way in which i can send the data as literals?
thanks so long
dve83
public function getdata(names() as string) as string
label.caption = names(1)
end function
lets say I want to call this function and send it an undetermined number of values for the array. : I thought Id changer the header so it has a "number" parameter as well and the redim the array in the function body. like so:
public function getdata(number as integer,names() as string)
redim names(number)
end function
any thoughts?
ok second (and actual question): If I want to call this function, how can I send the data to the formal array parameter without sending another array? Is their some way in which i can send the data as literals?
thanks so long
dve83