COM object EvDataFilesCollection
EvApplication > EvFileCollection > EvFile > EvFilesetsCollection > EvFileset > EvDataFilesCollection
View the COM map and the COM summary. |
The EvDataFilesCollection object gives you access to information about and the ability to add and remove data files in an EV file. A data file is an item in the EvDataFilesCollection.
The EvDataFile object gives access to specific information from a data file.
EvDataFilesCollection methods and properties:
|
Description |
Add(String FileName) SummaryAdd a data file to the collection. Note: Echoview pauses until the Add data file process is complete. ParametersString sFileName - The path and name of the file to add. ReturnNone. |
|
(read-only) Integer Count() SummaryGet the number of data files currently in the collection. ParametersNone. ReturnInteger - Returns the number of data files in the collection. |
|
EvDataFile FindByFileName(String sDataFile) SummaryFind the data file from the collection. ParametersString sDataFile - The name of the data file you wish to find in the collection ReturnEvDataFile object - The EVDataFile object whose name matches the sDataFile string. |
|
(read-only) EvDataFile Item(Integer iIndex) SummaryGives access to a specific EvDataFile object in the EvDataFilesCollection by index. Item is the default property for this interface. The examples on the EvFileCollection page show several ways to use the Item property. ParametersInteger iIndex - Indexes are zero-based, so valid indexes are from 0 to Count-1. ReturnEvDataFile object |
|
Boolean Remove(EvDataFile oDataFile) SummaryRemove the given data file from the collection. Note: If you want to remove all data files use the method RemoveAll. ParametersEvDataFile oDataFile - The COM object referring to the data file to be removed from the collection. ReturnBoolean - True if removal is successful. |
|
RemoveAll | Boolean RemoveAll()SummaryRemove all data files from the collection. ParametersNone. ReturnBoolean - True if removal is successful. ExampleDim vEchoviewCom: Set vEchoviewCom = GetObject(, "EchoviewCom.EvApplication") Dim vEvFile: Set vEvFile = vEchoviewCom.EvFiles.Item(0) Dim Fileset: Set Fileset = vEvFile.Filesets.FindByName("Fileset1") Fileset.DataFiles.RemoveAll |
See also
Scripting with COM objects
EvDataFile object
COM object hierarchy