bdeAddBlockParameterValidValues
Adds validValues for a parameter within block.
Syntax
bdeAddBlockParameterValidValues(block, parameter, validValues, deleteExisting)
Inputs
- block
- The block to add to a parameter's valid values.
- parameter
- The parameter to add valid values to.
- validValues
- A list of valid values to add to the parameter.
- deleteExisting
- A boolean that represents whether or not the existing valid values should be deleted. true to delete existing values and false to not delete existing values.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockParameterValidValues(block, 'overflow', {'Nothing', 'Saturate', 'Error', 'Test'});