bdeSetBlockParameterValue

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

Syntax

bdeSetBlockParameterValue(editor, parameter, value)

Inputs

editor
The editor of the block.
Type: editor
parameter
The parameter to set value for.
Type: string
value
The value to set for the parameter. Type changes depending on the parameter that is being set.
Type: Boolean/integer/tableValue

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);
          bdeSetBlockParameterValue(blockEditor, 'testParam', '1');