PdcProjects.Open: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:


== Code example ==
== Code example ==
 
The following code example opens an existing project, changes the description and saves the project.


<source lang="vb">
<source lang="vb">
 
dim objProject
  set objProject = pdc.projects.Open("12345")
  if IsValid(objProject) then
    objProject.Description = "Omschrijving"
    objProject.Save
  end if
</source>
</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).