PdcMaterial.UserString

From External Bemet Wiki
Revision as of 09:36, 22 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == UserString(Index as long) as String == Description == Returns or changes the value of a text userfield with the supplied index == Notes == This property r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

UserString(Index as long) as String

Description

Returns or changes the value of a text userfield with the supplied index

Notes

This property returns or sets the fixed userfields of the current material. The supplied parameter is the index (1 to 5) of the userfield.

Code example

This code example returns userfield 3 of the first material.

dim objCalc

dim objMat

  set objCalc = pdc.ActiveCalculation
  set objMat = objCalc.MaterialList(0)
  msgbox objMat.UserString(3)

Availability