You don't have to return anything

I mean:

Sub MyMeth (arr() as string)
        arr.Append "A"
        arr.Append "B"
        arr.Append "C"
End Sub

Calling the method

Dim Myarr() as string
MyMeth (Myarr)

now Myarr is:
Myarr(0) = "A"
Myarr(1) = "B"
Myarr(2) = "C"

HTH

Alexander!



At 03:51 p.m. 24/04/2006, you wrote:
I would like a function to pass a string array.

so, in the Return type, I have "string()"

and am doing:


dim arr() as string
Return arr()

I am getting a compile error. (104)

Would appreciate your input

Thanks in advance.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to