PdcApplication.GiveInProduction: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Declaration ==
== Declaration ==
 
GiveInProduction(CalcNumbers as IStrings,StartChars as String,PlanPrio as VT_INT,Children as Boolean,EndlessCap as Boolean,Compress as Boolean) as Boolean


== Description ==
== Description ==
 
Give a list of calculations in prduction


== Notes ==
== Notes ==
This method starts the production phase for a list of calculations.
The calculations must be closed before executing.
You can check this e.g. by using the Registered property of the calculation object.


CalcNumbers List of calculationnumbers that should be executed (pdc.GetEmptyStringList).<br />
StartChars Which startletter should be used<br />
PlanPrio Which plan prio should be used<br />
Children Also give subcalculations in production<br />
EndlessCap Use endless capacity in the planning<br />
Compress Compress when start date is in the past


== Code example ==
== Code example ==
This code example starts the production phase of the calculations 0801-000035 and 0801-000087.
<source lang="vb">
dim strlstCalcNumbers
  set strlstCalcNumbers = pdc.GetEmptyStringsList
  strlstCalcNumbers.Add "0801-000035"
  strlstCalcNumbers.Add "0801-000087"
  if pdc.GiveInProduction(strlstCalcNumbers, "", 0, False, False, False) then
    msgbox "in productie geven gelukt"
  else
    msgbox pdc.LastError
  end if
</source>


This code example starts the production phase of the calculations 0801-000035 and 0801-000087 in VB.Net.


<source lang="vb">
<source lang="vb">
    Dim strlstCalcNumbers As StdVCL.IStrings = PDC.App.GetEmptyStringsList
    strlstCalcNumbers.Add("0801-000035")
    strlstCalcNumbers.Add("0801-000087")
    If PDC.App.GiveInProduction(strlstCalcNumbers, "", 0, False, False, False) Then
      MsgBox("in productie geven gelukt")
    Else
      MsgBox(PDC.App.LastError)
    End If


</source>
</source>
NOTE: When using above code, you must register stdvcl40.dll:
Execute command prompt as administrator:
Regsvr32 \\server\share\plancam\stdvcl40.dll


== Availability ==
== Availability ==
Available since June 2008 (From version 3.8).

Latest revision as of 11:35, 11 June 2018

Declaration

GiveInProduction(CalcNumbers as IStrings,StartChars as String,PlanPrio as VT_INT,Children as Boolean,EndlessCap as Boolean,Compress as Boolean) as Boolean

Description

Give a list of calculations in prduction

Notes

This method starts the production phase for a list of calculations. The calculations must be closed before executing. You can check this e.g. by using the Registered property of the calculation object.

CalcNumbers List of calculationnumbers that should be executed (pdc.GetEmptyStringList).
StartChars Which startletter should be used
PlanPrio Which plan prio should be used
Children Also give subcalculations in production
EndlessCap Use endless capacity in the planning
Compress Compress when start date is in the past

Code example

This code example starts the production phase of the calculations 0801-000035 and 0801-000087.

dim strlstCalcNumbers

  set strlstCalcNumbers = pdc.GetEmptyStringsList
  strlstCalcNumbers.Add "0801-000035"
  strlstCalcNumbers.Add "0801-000087"

  if pdc.GiveInProduction(strlstCalcNumbers, "", 0, False, False, False) then
    msgbox "in productie geven gelukt"
  else
    msgbox pdc.LastError
  end if


This code example starts the production phase of the calculations 0801-000035 and 0801-000087 in VB.Net.

    Dim strlstCalcNumbers As StdVCL.IStrings = PDC.App.GetEmptyStringsList

    strlstCalcNumbers.Add("0801-000035")
    strlstCalcNumbers.Add("0801-000087")

    If PDC.App.GiveInProduction(strlstCalcNumbers, "", 0, False, False, False) Then
      MsgBox("in productie geven gelukt")
    Else
      MsgBox(PDC.App.LastError)
    End If

NOTE: When using above code, you must register stdvcl40.dll: Execute command prompt as administrator: Regsvr32 \\server\share\plancam\stdvcl40.dll


Availability

Available since June 2008 (From version 3.8).