PdcMaterial.BCostKind

From External Bemet Wiki
Revision as of 09:08, 22 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == BCostKind as String == Description == Returns the real costkind == Notes == This property returns (i.e. READ ONLY) the actual cost kind of the material an...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

BCostKind as String

Description

Returns the real costkind

Notes

This property returns (i.e. READ ONLY) the actual cost kind of the material and is obviously only of interest once production has been reported.

Code example

This code example opens a calculation, loops through its materials, and shows the actual cost kind for each material in a message box.

dim objCalc

  set objCalc = pdc.OpenCalculation("00685")
  for i = 0 to objCalc.MaterialList.Count -1
    set objMat = objCalc.MaterialList(i)
    msgbox "The area factor is" & objMat.BCostKind
  next

Availability