PdcMaterial.UserCheck: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == UserCheck(Index as long) as Boolean == Description == Returns or changes the value of a boolean userfield with the supplied index == Notes == This propert..."
 
No edit summary
Line 6: Line 6:


== Notes ==
== Notes ==
This property returns or sets the fixed usercheckboxes of the current material. The supplied parameter is the index (1 to 5) of the usercheckbox
This property returns or sets the fixed usercheckboxes of the current material.  
 
The supplied parameter is the index (1 to 5) of the usercheckbox. The corresponding fieldname starts with 1 (DM_USER1)


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

Revision as of 10:25, 20 December 2018

Declaration

UserCheck(Index as long) as Boolean

Description

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

Notes

This property returns or sets the fixed usercheckboxes of the current material.

The supplied parameter is the index (1 to 5) of the usercheckbox. The corresponding fieldname starts with 1 (DM_USER1)

Code example

This code example returns usercheckbox 3 of the first material.

dim objCalc

dim objMat

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

Availability