PdcApplication.ReserveProductionNumber: Difference between revisions
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ReserveProductionNumber(CalcNumbers as IStrings,StartChars as String,PlanPrio as VT_INT,Children as Boolean,EndlessCap as Boolean,Compress as Boolean) as Boolean | |||
== Description == | == Description == | ||
Reserves production numbers for the list of calculations provided | |||
== Notes == | == Notes == | ||
This method starts production provisionally, for a list of calculations.<br /> | |||
The calculations must be closed before executing.<br /> | |||
You can check this e.g. by using the Registered property of the calculation object.<br /> | |||
CalcNumbers List of calculationnumbers that should be executed<br /> | |||
StartChars Which startletter should be used<br /> | |||
PlanPrio Which plan prio should be used<br /> | |||
Children Also give subcalculations in production<br /> | |||
EndlessCap Not used<br /> | |||
Compress Not used | |||
== Code example == | == Code example == | ||
For the calculations 0801-000035 and 0801-000087 a production number is generated. | |||
<source lang="vb"> | |||
dim strlstCalcNumbers | |||
Set strlstCalcNumbers = pdc.GetEmptyStringsList | |||
strlstCalcNumbers.Add "0801-000035" | |||
strlstCalcNumbers.Add "0801-000087" | |||
If pdc.ReserveProductionNumber(strlstCalcNumbers, "", 0, False, False, False) Then | |||
msgbox "Preserving the production number is completed." | |||
else | |||
msgbox pdc.LastError | |||
end if | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since March 2009 (From version 3.7). |
Latest revision as of 11:11, 21 May 2012
Declaration
ReserveProductionNumber(CalcNumbers as IStrings,StartChars as String,PlanPrio as VT_INT,Children as Boolean,EndlessCap as Boolean,Compress as Boolean) as Boolean
Description
Reserves production numbers for the list of calculations provided
Notes
This method starts production provisionally, 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
StartChars Which startletter should be used
PlanPrio Which plan prio should be used
Children Also give subcalculations in production
EndlessCap Not used
Compress Not used
Code example
For the calculations 0801-000035 and 0801-000087 a production number is generated.
dim strlstCalcNumbers
Set strlstCalcNumbers = pdc.GetEmptyStringsList
strlstCalcNumbers.Add "0801-000035"
strlstCalcNumbers.Add "0801-000087"
If pdc.ReserveProductionNumber(strlstCalcNumbers, "", 0, False, False, False) Then
msgbox "Preserving the production number is completed."
else
msgbox pdc.LastError
end if
Availability
Available since March 2009 (From version 3.7).