TdxCustomMemData.GetRecNoByFieldValue(Variant,string) Method
The GetRecNoByFieldValue method returns a record number by a specific field value.
Declaration
function GetRecNoByFieldValue(Value: Variant; FieldName: string): Integer; virtual;
Parameters
| Name | Type |
|---|---|
| Value | Variant |
| FieldName | string |
Returns
| Type |
|---|
| Integer |
Remarks
Call the GetRecNoByFieldValue method to obtain a specific RecNo. Use the Value and FieldName parameters to specify the required RecNo. If an applicable record is not found, the GetRecNoByFieldValue returns -1. If there is more than one record with a specific value, the RecNo of the first record is returned.
See Also