I cant send an array into my function.. i havent used VB in a while, can you tell me what is wrong with my code
Function Leave(Channel(1 to 20) as String) as Double
thank you for your time.
|
Go4Expert Member
|
|
| 13Jul2007,03:33 | #2 |
|
If I remember correctly with VB6 you would send an array to a function using:
The declaration and function contents Code:
Function Leave(Channel() as String) as Double ...some code the function processes End Function Code:
Dim retval as Double ' return value Dim Channel(20) as String ' array of 20 strings retval = Leave(Channel) |
|
Go4Expert Member
|
|
| 13Jul2007,19:23 | #3 |
|
thanks that worked well
|
|
Go4Expert Member
|
|
| 13Jul2007,19:24 | #4 |
|
if i knew how to mark this as solved i would.
|
|
Go4Expert Founder
|
![]() |
| 13Jul2007,19:48 | #5 |
|
Quote:
Originally Posted by chico1st |
|
Go4Expert Member
|
|
| 13Jul2007,21:03 | #6 |
|
Quote:
Originally Posted by chico1st |

