Progress
Language Reference


EQ or = Operator

Interfaces
OS
SpeedScript
All
All
Yes

Returns a TRUE value if two expressions are equal.

If characters are being compared, the character values are used to index into the current collation table so that the sort value of the characters are used in the comparison.

SYNTAX

expression { EQ | = } expression 

expression

A constant, field name, variable name, or expression. The expressions on either side of the EQ or = must be of the same data type, although one might be an integer and the other a decimal.

EXAMPLE

This procedure prompts for the initials of a sales rep. The FOR EACH block reads all the order records for that sales rep. The DISPLAY statement displays information from each of the retrieved records.

r-eq.p
PROMPT-FOR order.sales-rep WITH SIDE-LABELS CENTERED.

FOR EACH order WHERE sales-rep EQ INPUT sales-rep:
  DISPLAY order-num cust-num order-date promise-date ship-date
    WITH CENTERED.
END. 

NOTES


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