PdcProjects.Open: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Open(ProjectNo as String) as PdcProject == Description == Returns an opened project object with the supplied number == Notes == This method opens the ..." |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
This method opens the project for the given projectnumber. | This method opens the project for the given projectnumber. | ||
== Code | == Code example == | ||
The following code example opens an existing project, changes the description and saves the project. | |||
<source lang="vb"> | |||
dim objProject | |||
set objProject = pdc.projects.Open("12345") | |||
if IsValid(objProject) then | |||
objProject.Description = "Omschrijving" | |||
objProject.Save | |||
end if | |||
</source> | |||
== Availability == | == Availability == | ||
Available since February 2011 (From version 4.2 onwards). | Available since February 2011 (From version 4.2 onwards). |
Latest revision as of 10:45, 5 November 2013
Declaration
Open(ProjectNo as String) as PdcProject
Description
Returns an opened project object with the supplied number
Notes
This method opens the project for the given projectnumber.
Code example
The following code example opens an existing project, changes the description and saves the project.
dim objProject
set objProject = pdc.projects.Open("12345")
if IsValid(objProject) then
objProject.Description = "Omschrijving"
objProject.Save
end if
Availability
Available since February 2011 (From version 4.2 onwards).