AVAILABLE record
Note: To access a record in a table defined for multiple databases, you might have to qualify the record’s table name with the database name. See the Record phrase reference entry for more information.In this procedure, the FIND statement with the NO-ERROR option bypasses the default error checking and does not display the message you get. Because ItemNum is unique, you do not have to use the AMBIGUOUS function to pinpoint the cause of a record not being AVAILABLE.
REPEAT:PROMPT-FOR Item.ItemNum.FIND Item USING ItemNum NO-ERROR.IF AVAILABLE Item THENDISPLAY Item.ItemName Item.Price.ELSEMESSAGE "Not found".END.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |