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.
Type: block
parameter
The parameter to set valid values for.
Type: string
validValues
A list of valid values for the parameter.
Type: list

Examples

Set the valid values for a parameter within a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockParameterValidValues(block, 'overflow', {'Nothing', 'Saturate', 'Error', 'Test'});