PdcApplication.WithdrawFromProduction: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 14: Line 14:
dim strlstCalcList
dim strlstCalcList


   set strlstCalcList = pdc.GetEmptyStringList
   set strlstCalcList = pdc.GetEmptyStringsList
   strlstCalcList.Add "0801-000087"
   strlstCalcList.Add "0801-000087"
   strlstCalcList.Add "0803-000056"
   strlstCalcList.Add "0803-000056"

Latest revision as of 09:26, 1 October 2015

Declaration

WithdrawFromProduction(CalcNumbers as IStrings,Children as Boolean) as Boolean

Description

Withdraw calculations from production

Notes

This method enables you to remove productionorders from the production phase.

Code example

This code example removes the stated calculations from production.

dim strlstCalcList

  set strlstCalcList = pdc.GetEmptyStringsList
  strlstCalcList.Add "0801-000087"
  strlstCalcList.Add "0803-000056"
  strlstCalcList.Add "0809-003865"

  if pdc.WithDrawFromProduction(strlstCalcList, True) then
    msgbox "Calculations succesfully withdrawn from production"
  else
    msgbox "Error withdrawing calculations from production! The error is: " & pdc.LastError
  end If

Availability

Available since May 2009 (From version 3.9).