bdeSetBlockParameterValidValues
Sets the validValues for a parameter within block. Works for parameters with widgets of the type listbox, checkbox, comboboxelement, radiobuttonelement.
Syntax
bdeSetBlockParameterValidValues(block, parameter, validValues)
Inputs
- block
- The block to set a parameter's valid values.
- parameter
- The parameter to set valid values for.
- validValues
- A list of valid values for the parameter.
Examples
Set the valid values for a parameter within a block:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockParameterValidValues(block, 'overflow', {'Nothing', 'Saturate', 'Error', 'Test'});