|
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/2024
if (pProjectDet->SeekBySysNum (smLast, 0))
{
VARIANT vActionDate;
vActionDate.vt = VT_DATE;
vActionDate.date = COleDateTime (2024, 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/2024
if (oProjectDet.SeekBySysNum (eSeekMode.smLast, 0))
{
oProjectDet.SetFieldVal (eProjectDetFld.pjdfActionDate, new DateTime (2024, 4, 26));
oProjectDet.Update (eUpdateMode.umFullReport);
}
|
|
|
VBS |
|
' Update the action date of the last inserted project detail to 26/04/2024
If oProjectDet.SeekBySysNum(smLast, 0) Then
Dim dtActionDate
dtActionDate = #4/26/2024#
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/2024
If oProjectDet.SeekBySysNum(eSeekMode.smLast, 0) Then
Dim dtActionDate As Date
dtActionDate = #4/26/2024#
oProjectDet.SetFieldVal(eProjectDetFld.pjdfActionDate, dtActionDate)
oProjectDet.Update(eUpdateMode.umFullReport)
End If
|
|