Hide

SftButton/OCX 3.0 - Button Control

Display
Print

DataObjectFiles.Add Method

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

Syntax

VB.NETobject.Add(ByVal Filename As String, [ ByVal ItemIndex As Object ] )
VBobject.Add(ByVal Filename As String, [ ByVal ItemIndex As Variant ] )
C#.NETvoid object.Add(string Filename, object ItemIndex);
VC++HRESULT object->Add(_bstr_t Filename, const _variant_t& ItemIndex = vtMissing);
CHRESULT object->raw_Add(BSTR Filename, VARIANT ItemIndex);

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 DataObject.Files collection to retrieve the list of file names.

See Also DataObjectFiles Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.