Hello,
I want to compare 2 numbers in VB6.
The numbers are in a format like: 1.2.3
So here 1.2.3 is less than 1.2.4.
Also 1.2.3 is greater than 1.2.1.
And 1.2.3 equals 1.2.3.
So how should I do it?
But I think it has some logical problems as it won't compare correctly!
Thank you for any ideas you might have!
I want to compare 2 numbers in VB6.
The numbers are in a format like: 1.2.3
So here 1.2.3 is less than 1.2.4.
Also 1.2.3 is greater than 1.2.1.
And 1.2.3 equals 1.2.3.
So how should I do it?
Visual Basic:
Dim NumberOne As Single
Dim NumberTwo As Single
NumberOne = 1.2.3
NumberTwo = 3.2.1
If Version > MyVersion Then
...
End If
If Version = MyVersion Then
...
End If
If Version < MyVersion Then
...
End If
Thank you for any ideas you might have!