Passing arrays in a sub/function 
Author Message
 Passing arrays in a sub/function

What is the syntax in passing arrays to procedures. I assumed that they are
passed by referance, but when I try to pass the array I get the following
compilation error: Byref argument type mismatch.

Any help would be appreciated.



Mon, 04 Dec 2000 03:00:00 GMT  
 Passing arrays in a sub/function

Quote:

>What is the syntax in passing arrays to procedures. I assumed that they are
>passed by referance, but when I try to pass the array I get the following
>compilation error: Byref argument type mismatch.

    Public Sub Test(saTest() As String)

and to call it...

    Test x()

Frank Carr



Mon, 04 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Passing array back from Sub/Function

2. pass an array as function/sub argument

3. Question on passing array parameters to VB.NET Sub/Function

4. Passing arrays to SUBs and FUNCTIONs

5. Passing arrays from a server-function/sub to a server -variable

6. pass an array as function/sub argument

7. Pass control array to sub/function ?

8. Passing Arrays to Sub / Functions

9. Passing Control Array to a SUB/FUNCTION

10. Calling a sub or function using a variable through another sub or function

11. Returning sub or function name within a specific sub or function

12. Local function/sub inside function/sub

 

 
Powered by phpBB® Forum Software