PdcMaterial.No: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == No as String == Description == Returns or changes the number == Notes == This property sets or returns the materialnumber of the material. == Code exampl..."
 
No edit summary
Line 6: Line 6:


== Notes ==
== Notes ==
This property sets or returns the materialnumber of the material.
This property returns the materialnumber of the material. READ ONLY!


== Code example ==
== Code example ==

Revision as of 12:51, 4 November 2013

Declaration

No as String

Description

Returns or changes the number

Notes

This property returns the materialnumber of the material. READ ONLY!

Code example

This code example opens a calculation, loops through its materials and returns the material's number for each of them.

dim objCalc

  set objCalc = pdc.OpenCalculation("00685")
  for i = 0 to objCalc.MaterialList.Count -1
    set objMat = objCalc.MaterialList(i)
    msgbox "This material has number: " & objMat.No
  next

Availability