RemoveButton Method (TOOLBAR)


PLBCMP GUI Only

 

The RemoveButton method deletes a button from a TOOLBAR object. The method uses the following format:

 

[label]

{object}.RemoveButton

[GIVING {return}] USING [*Key=]{key}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A TOOLBAR object to which a button is added.

return

Optional. A Numeric Variable that indicates the success or failure of the method.

key

Required. A Character String Variable or Numeric Variable that specifies the run-time name or zero-based position of the button.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the value returned is zero, the ZERO Condition Flag is set.

  2. The OVER and EOS Condition Flags are always cleared.

  3. A return value zero (0) indicates success.

  4. For improved performance in the Application Server environment, do not specify the optional return value unless needed.

 

 

See Also: Method Syntax, TOOLBAR Methods

 



PL/B Language Reference GetButtonByState (TOOLBAR) ResetImageList Method (TOOLBAR)