GetLess
Applies to
VAccess
Description
Attempts to retrieve the last record in the current index path containing a value less than the value specified for the key fields, and returns, as an Integer value, the PSQL status code.
Syntax
object.GetLess [vLockBias]
The syntax for this method has the following parts:
 
Remarks
This method attempts to retrieve the last record which contains a value in the currently selected key field(s) which is less than the value specified for the field(s) prior to the operation, from the file associated with the control.
Before invoking this method, set the value of the field or fields which make up the index specified in the IndexNumber property. If the key fields are bound to field controls, their value will be set by modifying the contents of the bound controls. To set these values from code, use the FieldValue property.
The status code for the operation will be returned by the method and set in the Status property of the control, a value of zero indicating success. A Status Code 9 indicates that no records in the file have a key value less than that specified prior to the operation.