|
Updates a Project Detail. |
|
 |
void Update ( enum eUpdateMode eUpdateMode ) |
|
|
Parameters | eUpdateMode | [in] A value of the 'eUpdateMode' enumeration. | | Remarks |
 | A project detail cannot be updated using the update mode umDialog. Otherwise, an exception will be thrown! |
 | Updating a record destroys the object positioning that was previously established via a SeekBy-method and the GetNext/GetPrevious-methods. The results of calling GetNext or GetPrevious after an update are not guaranteed. |
|
|
See Also |
|
|
|
Samples |
|
 |
C++ |
|
// Update the action date of the last inserted project detail to 26/04/2025
if (pProjectDet->SeekBySysNum (smLast, 0))
{
VARIANT vActionDate;
vActionDate.vt = VT_DATE;
vActionDate.date = COleDateTime (2025, 4, 26, 0, 0, 0).m_dt;
pProjectDet->SetFieldVal (pjdfActionDate, vActionDate);
pProjectDet->Update (umFullReport);
}
|
|
 |
C# |
|
// Update the action date of the last inserted project detail to 26/04/2025
if (oProjectDet.SeekBySysNum (eSeekMode.smLast, 0))
{
oProjectDet.SetFieldVal (eProjectDetFld.pjdfActionDate, new DateTime (2025, 4, 26));
oProjectDet.Update (eUpdateMode.umFullReport);
}
|
|
 |
VBS |
|
' Update the action date of the last inserted project detail to 26/04/2025
If oProjectDet.SeekBySysNum(smLast, 0) Then
Dim dtActionDate
dtActionDate = #4/26/2025#
Call oProjectDet.SetFieldVal(oProjectDet.GetFieldID("ActionDate"), dtActionDate)
Call oProjectDet.Update(umFullReport)
End If
|
|
 |
VB.NET |
|
' Update the action date of the last inserted project detail to 26/04/2025
If oProjectDet.SeekBySysNum(eSeekMode.smLast, 0) Then
Dim dtActionDate As Date
dtActionDate = #4/26/2025#
oProjectDet.SetFieldVal(eProjectDetFld.pjdfActionDate, dtActionDate)
oProjectDet.Update(eUpdateMode.umFullReport)
End If
|
|