PdcStatusManagement.SetManualStatus

From External Bemet Wiki
Revision as of 12:02, 21 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == SetManualStatus(CalculationNo as String,ID as long) as Boolean == Description == == Notes == This function allows the user to set an manual status for the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

SetManualStatus(CalculationNo as String,ID as long) as Boolean

Description

Notes

This function allows the user to set an manual status for the calculation. When the given id is an id of an automatic status the function returns false. The error given is stored in pdc.LastError.

Code example

This code example shows the calculationnumber, current status and previous status of the active status object.

pdc.Calculations.StatusInfo.SetManualStatus("11-08451",1)
  msgbox "Cn: " & objStat.CalculationNo
  msgbox "Cur: " & objStat.CurrentStatus
  set objStat = nothing

Availability

Available since version 4.3 onwards.