Option Compare Statement

   
Option Compare Statement

Syntax

 Option Compare {Binary  Text} 

Description

Used to set the default method for comparing string data

Rules at a Glance

  • When Option Compare is not used in a module, the default comparison method is Binary.

  • When Option Compare is used, it must appear at the start of the module's declarations section, before any procedures.

  • Binary comparison the default text comparison method in Visual Basic uses the internal binary code of each character to determine the sort order of the characters . For example, "A" < "a" .

  • Text comparison uses the locale settings of the current system to determine the sort order of the characters. Text comparison is case insensitive. For example, "A" = "a" .

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net