System.Classes.ObjectResourceToText
Delphi
procedure ObjectResourceToText(const Input, Output: TStream);
procedure ObjectResourceToText(const Input, Output: TStream; var OriginalFormat: TStreamOriginalFormat);
C++
extern DELPHI_PACKAGE void __fastcall ObjectResourceToText(TStream* const Input, TStream* const Output)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
Converts the binary representation of an object resource into more readily understandable text.
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.