[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'db' (#fcl)

# TWideStringField

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

Field class for widestring data

## Declaration

Source position: db.pas line 484

`type TWideStringField = class(TStringField)`
`class procedure CheckTypeSize(); override;`
`protected`
`function GetValue();`
`function GetAsString; override;`
`procedure SetAsString(); override;`
`function GetAsVariant; override;`
`procedure SetVarValue(); override;`
`function GetAsWideString; override;`
`procedure SetAsWideString(); override;`
`function GetDataSize; override;`
`public`
`constructor Create(); override;` |  | Create a new instance of the TWideStringField class.
`procedure SetFieldType(); override;` |  | Set the field type
`property Value: WideString; [rw]` |  | Value of the field as a widestring
`end;`

## Inheritance

`TWideStringField` |  | Field class for widestring data
`TStringField` |  | Field class to handle ansistring fields
`TField` |  | Provide access to the contents of a single field in a record
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

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

## See also

TField |  | Provide access to the contents of a single field in a record
TStringField |  | Field class to handle ansistring fields
TDataset |  | Base class for records-based data-access

The latest version of this document can be found at lazarus-ccr.sourceforge.net.