PdcMaterial.UserString
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. The corresponding fieldname starts with 1 (DMU_USER1)
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)