Visit Gigasoft's Web Site
 ProEssentials v9 Help

SerializeToFile Method

Scope All ProEssentials OCX Interfaces

 

SerializeToFile(szFilename As String) As Boolean

 

Parameter

Description

szFilename

Filename to save data to.

 

The SerializeToFile method is used to save the controls state into a binary file which will then be used as the target for the DATA attribute of an OBJECT tag within an HTML page.

 

HTML / ASP Example

For example, SerializeToFile is called with the filename "DefaultData.bin". Later an HTML page can use this file as part of the DATA attribute to construct an ActiveX based on this stored state.

 

<HTML>

<HEAD></HEAD>

<BODY>

<P>Graph Object Tag with Data Attribute.</P>

<OBJECT classid="clsid:C612BED1-4A73-456F-BAF7-5FF010070F7E"

DATA="http://www.yourserver.com/DefaultData.bin"

WIDTH="500"

HEIGHT="500" VIEWASTEXT> 

</OBJECT>

</BODY>

</HTML>