Project::PrepareProject (Interface: Project)
 
Prepares the object for handling a project and its details.
 
void PrepareProject (
    enum ePrepareAction ePrepareAction
)
 
Parameters
ePrepareAction
[in] A value of the 'ePrepareAction' enumeration.
 
See Also
CreateProject
Handling project using the SDK
WriteProject
CancelProject
IndexFromSeqNum
 
Samples
 
C++
 
// Change the comment of the project detail with sequence number 3 to 'Updated via the SDK'
VARIANT vEmpty;
vEmpty.vt = VT_EMPTY;

pProject->PrepareProject (paUpdate);

pProject->UpdateDetailSel (pProject->IndexFromSeqNum(3), vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, "Updated via the SDK", vEmpty, vEmpty, vEmpty, vEmpty, vEmpty, vEmpty);

pProject->WriteProject (rmFullReport);

C#
 
// Change the comment of the project detail with sequence number 3 to 'Updated via the SDK'
oProject.PrepareProject (ePrepareAction.paUpdate);

oProject.UpdateDetailSel (oProject.IndexFromSeqNum(3), null, null, null, null, null, null, null, null, null, null, "Updated via the SDK", null, null, null, null, null, null);

oProject.WriteProject (eReportMode.rmFullReport);

VBS
 
' Change the comment of the project detail with sequence number 3 to 'Updated via the SDK'
Call oProject.PrepareProject(paUpdate)

Call oProject.UpdateDetailSel(oProject.IndexFromSeqNum(3), Empty, Empty, Empty, Empty, Empty, Empty, Empty, Empty, Empty, Empty, "Updated via the SDK", Empty, Empty, Empty, Empty, Empty, Empty)

Call oProject.WriteProject(rmFullReport)

VB.NET
 
' Change the comment of the project detail with sequence number 3 to 'Updated via the SDK'
oProject.PrepareProject(ePrepareAction.paUpdate)

oProject.UpdateDetailSel(oProject.IndexFromSeqNum(3), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "Updated via the SDK", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)

oProject.WriteProject (eReportMode.rmFullReport)