"Q" Case Is >...">

What does the CASE syntax mean? - VB6

I have the following code in a VB6 project that I just inherited.

Case Is > "S"
Case Is > "Q"
Case Is >= "A"
Case Is = "M"

The only one I understand is the case Is = "M"

What do the characters ">" (more) mean?

+3
source share
3 answers

Strings can be compared with more or less than just numbers. Basically, this should compare their ascii values.

http://www.vbexplorer.com/VBExplorer/Focus/strings_tutorial_2.asp

http://msdn.microsoft.com/en-us/library/215yacb6(v=vs.80).aspx

+3
source

He compares them alphabetically. See the section here on MSDN called String Comparison.

From the docs:

, , .

. . .

A < B < E < Z < a < b < e < z < À < Ê < Ø < à < < ø

, , . , :

(A = a) (À = à) (B = b) (E = e) ( = < (Ø = ø) (Z = Z)

+3
+1

All Articles