copy( )
Copies selected text to the Windows clipboard.
Syntax
<oRef>.copy( )
<oRef>
An object reference to the control from which to copy the text.
Property of
Browse, ComboBox, Editor, Entryfield, SpinBox
Description
Use copy( ) when the user has selected text and wants to copy it to 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 copy.
If you have assigned a menubar to the form, you can use a menu item assigned to the menubar’s editCopyMenu property instead of using the copy( ) method of individual objects on the form.