bdeGetBlockParametersDialogResult

Returns a value that represents which button was last pressed in the dialog box.

Syntax

result = bdeGetBlockParametersDialogResult(dialog)

Inputs

dialog
The dialog to get the last button pressed in the dialog box.
Type: dialog

Outputs

result
The button that was pressed in the dialog box. Returns 2 for cancel and 1 for ok.
Type: BlockParametersDialogResult

Examples

Get a the last button pressed in the dialog box:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
          result = bdeGetBLockParametersDialogResult(dialog);
        

          
            result = 2