Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomMemData.GetRecNoByFieldValue(Variant,string) Method

The GetRecNoByFieldValue method returns a record number by a specific field value.

#Declaration

Delphi
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