I have a 2 dimensional string array. In the string array are some strings and some integer numbers. I want to compare two positions of the array together.
Example:
If StringArray(1, 5) > StringArray(1, 6) Then
MsgBox "Is first number is bigger"
End if
My Debugger says:
StringArray(1,5) = 150
StringArray(1,6) = 3
StringArray(1, 5) > StringArray(1, 6) = False
Does someone have an idea, why the Result is false? StringArray(1, 5) is definitely bigger. What could be the problem? Does it have something to do with the array type and how can i change that without creating a new integer array just for 2 Values?
Val(StringArray(1,5))