RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWriter.WriteChar Method

Writes the character passed in Value to the writer object's stream.

Pascal
procedure WriteChar(Value: Char);
C++
__fastcall WriteChar(Char Value);

WriteChar is used internally by the component streaming system to write component properties to a stream. Use WriteChar for writing component character properties to streams. 

WriteChar calls WriteString which checks to ensure that Value is the correct type before calling Write to write the character and its value type to the stream.

Note: WriteChar calls StringChar to enable writing character properties that are upwardly compatible with string properties.
 

 

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