Download CBL Text Editor (CBLe)

Transcript
Command Line Commands
CLAST
See Also:
SET ZONE
CLIPBOARD
Syntax:
>>-- CLIPboard --+-------------------|
+-------------------|
+-+------------+--+-|
| |
+-- APPEND --+ +-|
+--
CLEAR --------------------------+---><
|
PASTE --------------------------+
|
COPY -------------------------+-+
|
CUT --------------------------+
|
PUT --+-- BOX ---+-- string --+
|
|
+-- LINE --+
Description:
Move data to and from the CBLi environment clipboard.
The CLIPBOARD command is primarily for use in REXX edit macros and is also invoked from the Edit menu item in the CBLe
Main Menu Bar.
Text can only be copied between clipboard and the file display area of a CBLe or SDE edit view. At this time, CBLi does not
support moving text to and from a command line or non-CBLe/SDE edit view.
Before text can be copied to the clipboard, it must first be marked within the text display of an edit view. This may be done using
prefix commands C(n), CC, M(n) or MM; or using <PF15> or <PF16> which are, by default, assigned to MARK BOX and MARK
LINE respectively. An error message is displayed if there is no block marked in the current file.
If M(n) or MM is used to select a block of lines to be moved to the clipboard, then CLIPBOARD COPY is equivalent to CLIPBOARD
CUT.
Parameters:
APPEND
Applicable to COPY, CUT and PUT to the clipboard only, append data to a new line following the
existing clipboard data.
If APPEND is not specified, existing clipboard data is replaced by the new text.
CLEAR
Empty the clipboard of all its contents.
COPY
Copy the marked block of text to the clipboard. The marked block of text is preserved in the file area.
CUT
Copy the marked block of text to the clipboard then delete the marked block of text from the file area.
PASTE
Insert the contents of the clipboard at the focus position within the file area.
If the clipboard contains any text that has been inserted from a marked line block or from a
CLIPBOARD PUT LINE operation, then the text is pasted into column 1 of new lines inserted following
the focus line.
If the clipboard contains only text inserted from a marked box block or CLIPBOARD PUT BOX
operation, then the text is inserted at the focus column of the focus line and in as many lines that
follow as is necessary to accomodate all lines in the clipboard. New lines are added immediately
before the end of RANGE or end of file markers if necessary.
Text in the file area to the right of the inserted text is shifted further to the right.
PUT BOX|LINE string
Copy the specified text string to the clipboard as a BOX block or as a LINE block.
The effect of pasting a BOX block or LINE block is documented under PASTE.
Where more than 1 blank separates the text string from the previous parameter, the additional
separating blanks are treated as part of the text string.
Examples:
clip copy
Copy the currently marked block to the clipboard, replacing any existing clipboard text.
2009/07/16 12:25:40
CBL Text Editor (CBLe)
39