EPUB | CHM | PDF

TPSQLDirectQuery.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.

      • All field values are returned as strings when using TPSQLDirectQuery component for performance reasons.
      • NULL field's values are returned as empty string. Use FieldIsNull() method to distinguish empty string values from NULL values.

See also: FieldValues, FieldNames properties, FieldIsNull() method