bdeSetBlockParametersEditorCurrentFieldValue

Sets the value for a subparameter using an editor. The variable value can be different types depending on what the parameter that is being set is.

Syntax

bdeSetBlockParametersEditorCurrentFieldValue(editor, parameter, fieldNum, value)

Inputs

editor
The editor of the block.
Type: editor
parameter
The parameter of which the subparameters are in. Can be of type string or hwscpBlockParameter.
Type: string/hwscpBlockParameter
fieldNum
The number that correlates to which subparameter to get the value of.
Type: integer
value
The value to set for the parameter.
Type: string

Examples

Set a value for a parameter in a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          blockEditor = bdeGetBlockParametersEditor(dialog);
          bdeSetBlockParametersEditorCurrentFieldValue(blockEditor, 'parameter1', 1, 'testSubParameter1');