Skip to content

TStringField

Field class to handle ansistring fields.

Declaration

Source position: db.pas line 504

type

  TStringField = class(TField)
  public
    constructor Create;
    procedure SetFieldType;
    property CodePage: TSystemCodePage; {r}
    property FixedChar: Boolean; {rw}
    property Transliterate: Boolean; {rw}
    property Value: string; {rw}
  published
    property EditMask;
    property Size; {d}
  end;

Description

TStringField is the class used whenever a dataset has to handle a string field type (data type ftString). This class overrides some of the standard TField methods to handle string data, and introduces some properties that are only pertinent for data fields of string type. It should never be necessary to create an instance of TStringField manually, a field of this class will be instantiated automatically for each string field when a dataset is opened.

Properties

Member Visibility Description
CodePage read only public Codepage of the field string data.
EditMask read only published Specify an edit mask for an edit control.
FixedChar public Is the string declared with a fixed length ?
Size read only published Maximum size of the string.
Transliterate public Should the field value be transliterated when reading or writing.
Value public Value of the field as a string.
See all Properties

Methods

Member Visibility Description
Create public Create a new instance of the TStringField class.
SetFieldType public Set the field type.
See all Methods

See also

Name Description
TField Provide access to the contents of a single field in a record.
TWideStringField Field class for widestring data.
TDataset Base class for records-based data-access.