CAN-FIND(FIRST LAST record constantOF table WHERE expression USE-INDEX indexUSING FRAME frame fieldAND FRAME frame fieldSHARE-LOCK NO-LOCK NO-WAIT NO-PREFETCH)To use CAN-FIND to locate 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.The table you want to use has a primary index; the constant is the value of the last component field of that index for the record you want.OF tableWHERE expressionUSE-INDEX index
Fields do not have to be indexed to use them in a CAN-FIND function. For example, you can use the following CAN-FIND function with the sports2000 database, even though the State field is not indexed:
CAN-FIND(FIRST Customer WHERE Customer.State = "NH")
CAN-FIND(Customer WHERE Customer.CustNum = x AND Customer.Name = y)
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |