How do I return an array from a class??

For example I have the following:

Code:
Public Function GetMessages() AS String
Dim sMsgs(2000) as string

     For J = 1 to 2000
          sMsgs(j) = winsock1.getdata~~~~
     Next J

End function
How do I return all 2000 sMsgs?

Thanks!!!