PdcProjects.Open: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 15: Line 15:
   
   
   set objProject = pdc.projects.Open("12345")
   set objProject = pdc.projects.Open("12345")
   objProject.Description = "Omschrijving"
   if IsValid(objProject) then
  objProject.Save
    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).