help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TResourceFile.SwitchTo

Write resources to a new stream.

Declaration

Source position: objects.pp line 507

function TResourceFile.SwitchTo(

  AStream: PStream;

  Pack: Boolean

):PStream;

Description

SwitchTo switches to a new stream to hold the resources in. AStream will be the new stream after the call to SwitchTo.

If Pack is true, then all the known resources will be copied from the current stream to the new stream (AStream). If Pack is False, then only the current resource is copied.

The return value is the value of the original stream: Stream.

The Modified flag is set as a consequence of this call.

Errors

Errors returned can be those of TStream.Read and TStream.Write.

See also

TResourceFile.Flush

  

Writes the resources to the stream.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505