SftBox/OCX 4.5

SftBox.Save Method

Softel vdm, Inc.

Saves the control contents.

Syntax       

VB.NET

object.Save(ByVal Filename As String, ByVal StreamName As String, ByVal Format As SftBoxSaveFormatConstants, ByVal Properties As Boolean, ByRef Stream As IStream)

VB

object.Save(ByVal Filename As String, ByVal StreamName As String, ByVal Format As SftBoxSaveFormatConstants, ByVal Properties As Boolean, Stream As IStream)

C#.NET

void object.Save(string Filename, string StreamName, SftBoxSaveFormatConstants Format, bool Properties, out IStream Stream);

VC++

HRESULT object->Save(_bstr_t Filename, _bstr_t StreamName, enum SftBoxSaveFormatConstants Format, VARIANT_BOOL Properties, IStream** Stream);

C

HRESULT object->raw_Save(BSTR Filename, BSTR StreamName, enum SftBoxSaveFormatConstants Format, VARIANT_BOOL Properties, IStream** Stream);

Delphi

procedure object.Save(Filename : WideString, StreamName : WideString, Format : TOleEnum, Properties : WordBool, out Stream : IStream);

object

A SftBox object.

Filename

A file name, where the contents are saved. If this file exists, it is overwritten. If the Filename argument is not NULL/Nothing, the Stream, StreamName arguments must be NULL/Nothing.

StreamName

Reserved for future use - Ignored. A stream name (part of the compound file FileName), where the contents are saved. If this stream exists, it is overwritten. 

Format

Reserved for future use - Must be set to saveFormatSftBoxStream.  Defines the format of the saved data.

Name

Value

Description

saveFormatSftBoxStream

0

Stream

Properties

Set to True to save combo box control properties (in addition to items and their attributes), False to save just the items and their attributes.

Stream

The stream (IStream interface) where the data is saved. If NULL (Nothing) is specified, FileName must be specified.

Comments

The Save method saves the control contents.

The Load method can be used to load the control contents saved using the Save method.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com