R
Rob Meade
Hi all,
Ok - I appreciated I could probably just do this :
For Each item IN array
intCount = intCount + 1
Next
I figured there might be a better way in .net...
I stumbled across this :
array.GetLength(intCount)
etc
I have tried using it but it returns as zero each time - in my current
scenario there are 2 items in the array...
The code I am using is such :
aReturnCodes = Split(strReturnCode, ",") ' populates array
aReturnCodes.GetLength(intArrayItems) ' gets length of array
label3.text = intArrayItems ' displays to page
My string has the following text before it goes into the array
6,7,
Therefore I expect at least 2 elements in my array - quite possibly 3
because of the trailing comma (to be removed)
However the label displays 0 ??
Any ideas?
Regards
Rob
Ok - I appreciated I could probably just do this :
For Each item IN array
intCount = intCount + 1
Next
I figured there might be a better way in .net...
I stumbled across this :
array.GetLength(intCount)
etc
I have tried using it but it returns as zero each time - in my current
scenario there are 2 items in the array...
The code I am using is such :
aReturnCodes = Split(strReturnCode, ",") ' populates array
aReturnCodes.GetLength(intArrayItems) ' gets length of array
label3.text = intArrayItems ' displays to page
My string has the following text before it goes into the array
6,7,
Therefore I expect at least 2 elements in my array - quite possibly 3
because of the trailing comma (to be removed)
However the label displays 0 ??
Any ideas?
Regards
Rob