PdcApplication.WithdrawFromProduction: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability =="
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Declaration ==
== Declaration ==
 
WithdrawFromProduction(CalcNumbers as IStrings,Children as Boolean) as Boolean


== Description ==
== Description ==
 
Withdraw calculations from production


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


== Code example ==
== Code example ==
This code example removes the stated calculations from production.


<source lang="vb">
dim strlstCalcList


<source lang="vb">
  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
</source>
</source>


== Availability ==
== Availability ==
Available since May 2009 (From version 3.9).

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).