PdcCalculation.ArticleKind: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ArticleKind as pdcArticleKind | |||
== Description == | == Description == | ||
Returns the article kind | |||
== Notes == | == Notes == | ||
This property returns (i.e. READ-ONLY) the article kind of the calculation. | |||
== Code example == | == Code example == | ||
This code example uses the active calculation and continues only when the calculation is an order, not a standard article. | |||
<source lang="vb"> | |||
dim objCalc | |||
dim GoOn | |||
set objCalc = pdc.ActiveCalculation | |||
if objCalc.ArticleKind = 1 then | |||
GoOn = false | |||
msgbox "The active calculation is a standard article, script does not continue" | |||
else | |||
GoOn = true | |||
end if | |||
</source> | |||
== Constants == | |||
0 pdcBuyArt | |||
1 pdcCreateArt | |||
2 pdcManufactureArt | |||
3 pdcNoneArt | |||
4 pdcSubCalcArt | |||
5 pdcTempArt | |||
6 pdcTempCalcArt | |||
(C) 1999 Codestone Ltd | |||
== Availability == | == Availability == |
Revision as of 08:55, 21 May 2012
Declaration
ArticleKind as pdcArticleKind
Description
Returns the article kind
Notes
This property returns (i.e. READ-ONLY) the article kind of the calculation.
Code example
This code example uses the active calculation and continues only when the calculation is an order, not a standard article.
dim objCalc
dim GoOn
set objCalc = pdc.ActiveCalculation
if objCalc.ArticleKind = 1 then
GoOn = false
msgbox "The active calculation is a standard article, script does not continue"
else
GoOn = true
end if
Constants
0 pdcBuyArt 1 pdcCreateArt 2 pdcManufactureArt 3 pdcNoneArt 4 pdcSubCalcArt 5 pdcTempArt 6 pdcTempCalcArt
(C) 1999 Codestone Ltd