BackUp LevelNext

Compare

Performs a case-sensitive comparison of two strings. Returns a negative number if string1 is less than string2; 0 if string1 is equal to string2; or a positive number if string1 is greater than string2.

See also CompareNoCase and Find.

Syntax

Compare(string1, string2)

string1, string2

Strings to be compared.

Usage

The comparison is performed on the ASCII values (character codes) of corresponding characters in string1 and string2.

If many strings are sorted in increasing order based on the Compare function, they appear listed in dictionary order.




BackUp LevelNext

allaire

AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.