Progress
Language Reference


COMPARE Function

Interfaces
OS
SpeedScript
All
All
Yes

The COMPARE function, which compares two strings, lets you:

COMPARE returns a value of type LOGICAL, which corresponds to the truth value of the comparison.

SYNTAX

COMPARE ( operand1 , relational-operator , operand2 , 
          strength [ , collation ]  
          ) 

operand1

A CHARACTER expression that evaluates to the first string to be compared.

relational-operator

A CHARACTER expression that evaluates to one of the relational operators, which are:

LT (or <), LE (or <=), EQ (or =), GE (or >=), GT (or >), and NE (or <>)

operand2

A CHARACTER expression that evaluates to the second string to be compared.

strength

A CHARACTER expression that evaluates to one of the following:

collation

A CHARACTER expression that evaluates to the name of a collation table.

If strength evaluates to CASE-SENSITIVE or CASE-INSENSITIVE, the collation table that collation evaluates to must reside in the convmap.cp file and must be a valid collation table for the code page corresponding to the -cpinternal startup parameter.

If strength evaluates to CASE-SENSITIVE or CASE-INSENSITIVE and collation does not appear, Progress uses the collation table.

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095