System.Classes.TWriter.WriteChar
Delphi
procedure WriteChar(Value: Char);
C++
void __fastcall WriteChar(System::WideChar Value);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TWriter |
Description
Writes the character passed in Value to the writer object's stream.
WriteChar is used internally by the component streaming system to write character properties of components to the writer object's stream.
WriteChar calls WriteString to write the value-type indicator (one of the vaString, vaLString, vaWString, or vaUTF8String values) corresponding to the passed Value character and then to write Value to the writer object's stream.
WriteChar advances the current position after the last written byte.
Note: Please note that the
vaString value type indicator applies to the ANSIString type, while the vaLString value type is for the Unicode string type, which is the alias of the string type.