Is VB6 string comparison string insensitive?

if strValue = 'Hello', then what would be the value (strValue <> 'HELLO')?

+5
source share
3 answers

It depends on how you use Option Compare . It can work anyway.

Option Compare Text 'Case insensitive'
Option Compare Binary 'Case sensitive (default)'

Here's a tutorial on line VB6 .

+12
source

No, it is case sensitive (by default, at least if you want to check if the Compare parameter is set to binary or not set, then it is case sensitive, if it is set to text, then it is case insensitive).

Lcase() , , .

, /, , -, , , , , , , ( , ), .

+11

Option Compare Text "" [ ], .
Option Compare Binary, .
Option Compare Database [only valid in Access VBA], .

+1

All Articles