johnaregan
Programmer
- Mar 13, 2001
- 87
Hi
I'm trying to pass an array ByRef to a function in order to change the contents of the array, the array is created by:
ar1 = Split("A","B","C"
The function call is:
change(ar1)
and the function is:
Function(ByRef tmp)
...code to change value to "D","E","F"
End Function
but when I display the contents of the ar array back in the main code it is unaffected by the function call, instead of displaying D, E, F is displays A, B, C.
Any help would be appreciated
I'm trying to pass an array ByRef to a function in order to change the contents of the array, the array is created by:
ar1 = Split("A","B","C"
The function call is:
change(ar1)
and the function is:
Function(ByRef tmp)
...code to change value to "D","E","F"
End Function
but when I display the contents of the ar array back in the main code it is unaffected by the function call, instead of displaying D, E, F is displays A, B, C.
Any help would be appreciated