Show: Delphi C++
Display Preferences

Data.DB.TField.AsWideString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsWideString: string read GetAsWideString write SetAsWideString;

C++

__property System::UnicodeString AsWideString = {read=GetAsWideString, write=SetAsWideString};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Represents the field's value as a WideString.

Reading the AsWideString property returns the abbreviated class name of the field component. The abbreviated class name is built by stripping the leading 'T' from the class name and removing the trailing word 'FIELD', except in the case of TField where that would leave an empty string. Thus, the abbreviated class name of TField is "FIELD", the abbreviated class name of TVarBytesField is "VarBytes", and so on.

Trying to set the AsWideString property raises an exception.

Descendants of TField that represent WideString fields or that support conversions between the field's Value property and a WideString override AsWideString to read and write the value of the field as a different, more meaningful string.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance