RAD Studio VCL Reference
Classes.ObjectResourceToText Function

Converts the binary representation of an object resource into more readily understandable text.

procedure ObjectResourceToText(Input: TStream; Output: TStream); overload;
procedure ObjectResourceToText(Input: TStream; Output: TStream; var OriginalFormat: TStreamOriginalFormat); overload;
ObjectResourceToText(TStream Input, TStream Output);
ObjectResourceToText(TStream Input, TStream Output, TStreamOriginalFormat OriginalFormat);

Call ObjectResourceToText to convert the representation of an object as it is saved in module resource files into a text version that that human readers can understand. ObjectResourceToText is the same as ObjectBinaryToText, except that it reads from a stream that includes a resource header. 

ObjectResourceToText converts the binary version of a form, as stored in a form file, into the text version that can be seen by right clicking the form and choosing View As Text

Use the WriteComponentRes method of the Input stream to write the binary representation before calling ObjectResourceToText. 


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