EPUB | CHM | PDF

TMySQLDirectQuery.Methods.FieldValueByFieldName

Top Previous Next

Returns field value by it name.

Syntax:

function FieldValueByFieldName(aFieldName : string) : string;

Description:

Call FieldValueByFieldName to get value of field with name aFieldName in active record.

For performance reasons all fields values are returned as strings when using TMySQLDirectQuery component.

NULL fields values are returned as empty string. Use FieldIsNull method to distinguish empty string values from NULL values.

note Use FieldRawDataPointer method to work with BLOB fields.

note Please read this FAQ section if you want to use Unicode strings in your application: How to use Unicode data in my application?

See also: FieldValues, FieldNames properties, FieldIsNull, FieldRawDataPointer methods