Cuts selected text and places it on the Windows Clipboard.

Syntax

<oRef>.cut( )

<oRef>

An object reference to the control from which to cut the text.

Property of

Browse, ComboBox, Editor, Entryfield, SpinBox

Description

Use cut( ) when the user has selected text and wants to remove it from the edit control and place it on the Windows clipboard.

When calling this method from a pushbutton’s onClick event, the pushbutton should have its speedBar property set to true, so that it doesn’t get focus. Otherwise, the edit control loses focus when the button is clicked, and there’s nothing to cut.

If you have assigned a menubar to the form, you can use a menu item assigned to the menubar’s editCutMenu property instead of using the cut( ) method of individual objects on the form.