Article ID: 189431
Article Last Modified on 10/24/2003
ActiveProject = "MyProjectName"causes the following run-time error: This error gives the impression that the property is read-only which is not the case. Use the following syntax instead:
Set ActiveProject = Projects("MyProjectName")
object.ActiveProject [=string]where object is an expression that evaluates to an Application object and string is the name of the project minus any file extension. When you access the ActiveProject property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.
ActiveProject = "MyProjectName"the following error occurs: This error gives the impression that the property is read-only which is not the case. Use the following syntax for setting the ActiveProject property instead:
Set ActiveProject = Projects(string)where string is the name of a project contained in the current workspace minus any file extension. It is case sensitive.
Set ActiveProject = Projects.Item(n)where n is an integer from 1 to the total number of projects in the current workspace.
Set ActiveProject = prjwhere prj is a variable already set to a project object.
object.ActiveConfiguration [=string]where object is an expression that evaluates to an Application object and string is the name of a valid configuration in the active project. When you access the ActiveConfiguration property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.
ActiveConfiguration = "MyConfiguration"the following error occurs: This error gives the impression that the property is read-only which is not the case. Use the following syntax for setting the ActiveConfiguration property:
Set ActiveConfiguration = ActiveProject.Configurations(n)where n is an integer from 1 to the total number of configurations in the active project.
Set ActiveConfiguration = ActiveProject.Configurations.Item(n)where n is an integer from 1 to the total number of configurations in the active project.
Set ActiveConfiguration = configwhere config is a variable already set to a configuration object.
URL mk:@ivt:istudio/F3/D10/S1BACE.htmVisual C++ Books Online: Developer Studio Environment User's Guide; Automating Tasks in Developer Studio; Developer Studio Objects; Reference: Developer Studio Objects; Properties; ActiveConfiguration Property
URL mk:@ivt:dsug/F22/D24/S11300.htm
Additional query words: kbAutomation kbIDE kbVC500
Keywords: kbprb kbdocerr KB189431