System.Classes.ObjectTextToResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ObjectTextToResource(const Input, Output: TStream; const Name: string);
procedure ObjectTextToResource(const Input, Output: TStream; var OriginalFormat: TStreamOriginalFormat; const Name: string);

C++

extern DELPHI_PACKAGE void __fastcall ObjectTextToResource(TStream* const Input, TStream* const Output, const System::UnicodeString Name = System::UnicodeString())/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Converts a symbolic text representation of an object into an internal binary representation.

Call ObjectTextToResource to create a component from the representation of an object as it is saved in module resource files. ObjectTextToResource is the same as ObjectTextToBinary, except that it skips over any object headers and includes a resource header instead. Use the ReadComponentRes method of the output stream to obtain the actual object.

ObjectTextToResource converts the text version of a form that can be seen by right clicking the form and choosing View As Text into the binary version which is stored in a form file.

See Also