Wednesday, March 03, 2010

compare in ColdFusion

Performs a case-sensitive comparison of two strings.
  • -1, if string1 is less than string2
  • 0, if string1 is equal to string2
  • 1, if string1 is greater than string2

Syntax :
Compare(string1, string2)

Parameter Description

string1 A string or a variable that contains one

string2 A string or a variable that contains one

Compares the values of corresponding characters in string1 and string2.


Coding :


Source: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi37.htm#wp1101820

No comments:

Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory