InfInterfaces FileComponent (Object)
All Frameworks Object Hierarchy This Framework Previous Next Indexes
FileComponent (Object)
IUnknown
|
+---IDispatch
|
+---CATBaseUnknown
|
+---CATBaseDispatch
|
+---AnyObject
|
+---FileComponent
Represents the file object.
Role : The file object allows to manipulate files with UNIX and Windows.
Use it instead of the one of Visual Basic to make portable macros.
Its gives access to information about the file
and can open a file as a TextStream object.
Property Index
ParentFolder
Returns or sets the parent folder of the file.
Path
Returns the full path of the file.
Properties
Returns or sets the parent folder of the file.
Example:
This example sets the folder ParentFold as parent of the file TestFile .
This moves the file into ParentFold .
TestFile.ParentFolder =ParentFold
o Property Path ( ) As CATBSTR (Read Only)
Returns the full path of the file.
Example:
This example retrieves in FilePath the path of
the File TestFile .
Dim FilePath As String
FilePath = TestFile.Path
Copyright © 2003, Dassault Systèmes. All rights reserved.