Data.DB.TStringField.Value

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Value: AnsiString read GetAsAnsiString write SetAsAnsiString;

C++

__property System::AnsiString Value = {read=GetAsAnsiString, write=SetAsAnsiString};

Properties

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

Description

Represents the data in the string field.

Use Value to read data directly from and write data directly to a string field component at runtime. Using the Value property is the same as using the AsString property. Use Value when you know the field component is a string field. Use AsString when working with a generic field component.

When setting the Value property, TStringField can convert the assigned string from UTF-8 or ANSI to the character set used by the dataset, if the Transliterate property is true. Strings that have more characters than permitted by the value of the Size property are truncated when setting Value.

See Also