PdcMaterial.UserString: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
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..."
 
No edit summary
 
Line 6: Line 6:


== Notes ==
== 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.
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 ==
== Code example ==

Latest revision as of 10:37, 20 December 2018

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)

Availability