RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStringField.Value Property

Represents the data in the string field.

Pascal
property Value: UnicodeString;
C++
__property UnicodeString Value;

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 wide string field. Use AsString when working with a generic field component. 

When setting the Value property, TWideStringField converts the assigned string from UTF-8 or ANSI to the character set for 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.

Table1TheWideStringField.Value := WideStringVariable;

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!