bdeGetBlockParametersEditorCurrentFieldValue

Returns the value of a subparameter within a parameter.

Syntax

currentFieldValue = bdeGetBlockParametersEditorCurrentFieldValue(editor, parameter, fieldNum)

Inputs

editor
The editor of the block.
Type: editor
parameter
The name of the parameter to get a value from. Can be of type string or hwscpBlockParameter.
Type: string/hwscpBlockParameter
fieldNum
The number that correlates to which sub parameter to get the value of.
Type: integer

Outputs

currentFieldVal
The current value of a subparameter in a block.
Type: editor

Examples

Get the value of a subparameter within a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
          blockEditor = bdeGetBlockParametersEditor(dialog);
          currentFieldVal = bdeGetBlockParametersEditorCurrentFieldValue(blockEditor, 'parameter1', 2)
        

          
            currentFieldVal = testSubParam2