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 |
||
(3 intermediate revisions by 2 users not shown) | |||
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 == | |||
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> | |||
== Code example == | == Code example == | ||
This code example check whether the active calculation is an article. | |||
<source lang="vb"> | <source lang="vb"> | ||
If aCalc.ArticleKind = PDCEXT.pdcArticleKind.pdcManufactureArt Then | |||
.... | |||
End If | |||
</source> | |||
== Constants == | |||
{| class="wikitable" | |||
|- | |||
! Constant !! pdcArticleKind !! TArtikel !! Description | |||
|- | |||
| 0|| pdcBuyArt|| maKoop|| Buy part | |||
|- | |||
| 1|| pdcCreateArt|| maMaak|| Make part | |||
|- | |||
| 2|| pdcManufactureArt|| maArtikel|| Article | |||
|- | |||
| 3|| pdcNoneArt|| maNone|| Temporary calculation/article (generate new number, NO attachments are copied upon save) | |||
|- | |||
| 4|| pdcSubCalcArt|| maCalc|| Calculation | |||
|- | |||
| 5|| pdcTempArt|| maTempAtr|| Temporary article (generate new number, attachments are copied upon save) | |||
|- | |||
| 6 || pdcTempCalcArt|| maTempCalc|| Temporary calculation (generate new number, attachments are copied upon save) | |||
|} | |||
== Availability == | == Availability == |
Latest revision as of 08:53, 10 July 2021
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
Code example
This code example check whether the active calculation is an article.
If aCalc.ArticleKind = PDCEXT.pdcArticleKind.pdcManufactureArt Then
....
End If
Constants
Constant | pdcArticleKind | TArtikel | Description |
---|---|---|---|
0 | pdcBuyArt | maKoop | Buy part |
1 | pdcCreateArt | maMaak | Make part |
2 | pdcManufactureArt | maArtikel | Article |
3 | pdcNoneArt | maNone | Temporary calculation/article (generate new number, NO attachments are copied upon save) |
4 | pdcSubCalcArt | maCalc | Calculation |
5 | pdcTempArt | maTempAtr | Temporary article (generate new number, attachments are copied upon save) |
6 | pdcTempCalcArt | maTempCalc | Temporary calculation (generate new number, attachments are copied upon save) |