SftButton/OCX 2.5

DataObjectFiles.Add Method

Softel vdm, Inc.

Adds a filename to the Files collection of a DataObject object (sftCFFiles format only).

Syntax       

VB.NET

object.Add(ByVal Filename As String, [ ByVal ItemIndex As Object ] )

VB

object.Add(ByVal Filename As String, [ ByVal ItemIndex As Variant ] )

C#.NET

void object.Add(string Filename, object ItemIndex);

VC++

HRESULT object->Add(_bstr_t Filename, const _variant_t& ItemIndex = vtMissing);

C

HRESULT object->raw_Add(BSTR Filename, VARIANT ItemIndex);

Delphi

procedure object.Add(Filename : WideString, ItemIndex : OleVariant);

object

A DataObjectFiles object.

Filename

The file name to be added to the collection.

ItemIndex

The one-based position where the file name is to be inserted. If ItemIndex is not specified, the new file name is added at the end of the collection.

Comments

The Add method adds a filename to the Files collection of a DataObject object (sftCFFiles format only).

The Files collection is filled with file names only when the DataObject object contains data of type sftCFFiles. The DataObject object can contain several different types of data. You can iterate through the collection to retrieve the list of file names.


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