bdeGetBlockParametersEditorCurrentFieldValue
Returns the value of a subparameter within a parameter.
Syntax
currentFieldValue = bdeGetBlockParametersEditorCurrentFieldValue(editor, parameter, fieldNum)
Inputs
- editor
- The editor of the block.
- parameter
- The name of the parameter to get a value from. Can be of type string or hwscpBlockParameter.
- fieldNum
- The number that correlates to which sub parameter to get the value of.
Outputs
- currentFieldVal
- The current value of a subparameter in a block.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
blockEditor = bdeGetBlockParametersEditor(dialog);
currentFieldVal = bdeGetBlockParametersEditorCurrentFieldValue(blockEditor, 'parameter1', 2)
currentFieldVal = testSubParam2