How to return an array ?
Hi!
Public Function test() As Int16()
Dim t(5) As Int16
t(0) = 1
t(1) = 2
t(2) = 3
Return t
End Function
public sub hai()
Dim i As Int16
Dim r(5) As Int16
r() = test()
'r() in the above line throws the following error: Number of indices is less than the number of dimensions of the indexed array
For i = 0 To 5
Response.Write(r(i))
Next
end sub
What is the problem ?
Regards,
Arul
__________________
Arul Kumar.PA
|