DEFINE QUERY custq FOR Customer FIELDS(Name CustNum Balance).
OPEN QUERY custq PRESELECT EACH Customer. REPEAT: GET NEXT custq. IF AVAILABLE(Customer) THEN DISPLAY Customer.Name Customer.CustNum Customer.Balance. ELSE LEAVE. END. |
REPEAT PRESELECT EACH Customer FIELDS (Name CustNum Balance):
FIND NEXT Customer. DISPLAY Customer.Name Customer.CustNum Customer.Balance. END. |