AddFile Method
Home Page (Objects) | Overview | FAQ | Reference
Applies to: BuildProject object
Adds a file to the project.
Syntax
object**.AddFile**file
Parameters
object
An expression that evaluates to a BuildProject object.
file
A String that contains the name of the file.
Example
The following example adds a file to a project:
Sub AddMyFile
If Projects(1).Type = "Build" Then
Projects(1).AddFile "myfile.cpp"
End If
End Sub