Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TStringField

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Field class to handle ansistring fields.

Declaration

Source position: db.pas line 504

type TStringField = class(TField)

public

  constructor Create(); override;

  

Create a new instance of the TStringField class.

  procedure SetFieldType(); override;

  

Set the field type.

  property CodePage: TSystemCodePage; [r]

  

Codepage of the field string data.

  property FixedChar: Boolean; [rw]

  

Is the string declared with a fixed length ?

  property Transliterate: Boolean; [rw]

  

Should the field value be transliterated when reading or writing.

  property Value: string; [rw]

  

Value of the field as a string.

published

  property EditMask: TEditMask;

  

Specify an edit mask for an edit control.

  property Size: Integer;

  

Maximum size of the string.

end;

Inheritance

TStringField

  

Field class to handle ansistring fields.

|

TField

  

Provide access to the contents of a single field in a record.

|

TComponent

|

TPersistent,IInterfaceComponentReference

|

TObject,IFPObserved

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.

See also

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.


Documentation generated on: Dec 26 2024