PdcCalculation.ArticleNo: 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
 
Line 1: Line 1:
== Declaration ==
== Declaration ==
 
ArticleNo as String


== Description ==
== Description ==
 
Returns or changes the articlenumber


== Notes ==
== Notes ==
 
This property sets or returns the article number of the calculation. This is specifically useful when determining whether an active calculation is an order or an standard article.


== 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">
<source lang="vb">
 
dim objCalc
dim GoOn
  set objCalc = pdc.ActiveCalculation
  if objCalc.CalculationNo = objCalc.ArticleNo then
    GoOn = false
    msgbox "The active calculation is a standard article, script does not continue"
  else
    GoOn = true
  end if
</source>
</source>


== Availability ==
== Availability ==

Latest revision as of 08:56, 21 May 2012

Declaration

ArticleNo as String

Description

Returns or changes the articlenumber

Notes

This property sets or returns the article number of the calculation. This is specifically useful when determining whether an active calculation is an order or an standard article.

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.CalculationNo = objCalc.ArticleNo then
    GoOn = false
    msgbox "The active calculation is a standard article, script does not continue"
  else
    GoOn = true
  end if

Availability