bdeGetBlockParameterValidValues

Returns a list of the valid values you can use for a specific parameter within block.

Syntax

validValues = bdeGetBlockParameterValidValues(block, parameter)

Inputs

block
The block to get the parameter valid values from.
Type: block
parameter
The parameter to get the possible valid values of.
Type: string

Outputs

validVals
A list that contains the different valid values for the given parameter in block.
Type: list

Examples

Get the valid values of a parameter in block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          validVals = bdeGetBlockParameterValidValues(block, 'overflow');
        

          
            validVals =
            {
            [1,1] 'Nothing'
            [2,1] 'Saturate'
            [3,1] 'Error'
            }