01-25-2016, 12:30 PM
Hello,
I have converted a string into an array using below function.
Function SpliteStringToArray(mystring, delimiter, outputArray)
myArray = split(mystring, delimiter)
For i = Lbound(myArray) to Ubound(myArray)
outputArray = myArray(i)
Next
End Function
But after calling the function, i am not able to use the outputArray.
Call SpliteStringToArray("amit/qtp", "/", Array1)
print Array1(1)
It gived error as type mismatch.
Please help
Regards
Amit
I have converted a string into an array using below function.
Function SpliteStringToArray(mystring, delimiter, outputArray)
myArray = split(mystring, delimiter)
For i = Lbound(myArray) to Ubound(myArray)
outputArray = myArray(i)
Next
End Function
But after calling the function, i am not able to use the outputArray.
Call SpliteStringToArray("amit/qtp", "/", Array1)
print Array1(1)
It gived error as type mismatch.
Please help
Regards
Amit