EQ or = operator

Returns a TRUE value if two expressions are equal.

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.SalesRep WITH SIDE-LABELS CENTERED.

FOR EACH Order NO-LOCK WHERE Order.SalesRep EQ INPUT Order.SalesRep:
  DISPLAY Order.OrderNum Order.CustNum Order.OrderDate Order.PromiseDate
    Order.ShipDate
    WITH CENTERED.
END.

Notes