RBEDIT (Short Name: RBE)
Top  Previous  Next

Use the RBEDIT command to start the R:BASE editor with which you can create or edit text files, command files, and recorded scripts.

rbedit

Options

filespec

Displays the contents of the file on the screen for editing. If the file does not exist, a blank screen is displayed. If you specify a wildcard with the filespec option, RBEDIT displays a list of all files that meet the condition. You can then choose a file from the list.

SELECT VARCHAR clause

Specifies a column defined with the VARCHAR data type from a table, then you can edit the contents. The SELECT clause must limit the data to only one row; otherwise, an error is returned.

About the RBEDIT Command

You can start the R:BASE editor by entering RBEDIT at the R> prompt, or by choosing R:BASE Editor from the Tools menu in R:BASE.

Editing a Script File
You can use RBEdit to create a script file or to edit existing script files. A script file is also called a playback file.

A script file is stored in binary format. RBEdit translates the binary format to ASCII so that it can be edited, then after editing, translates the file back into binary format.

Most of the keystrokes in a script file appear as you expect them to appear. The table below shows the key translations in a script file.

Script-Key Translations
         
Purpose            Key         Code   
Backspace            [Backspace]      [Bksp]   

Control               [Ctrl]         [Ctrl]   

Return/line feed            [Enter]         [Enter]   

Shift key            [Shift]         [Shift]   

Moves up one line         [Up Arrow]      [Up]   

Moves down one line         [Down Arrow]      [Down]   

Moves left one space         [Left Arrow]      [Left]   

Moves right one space         [Right Arrow]      [Right]   

Moves to the first line         [Ctrl] + [Left Arrow]   [Ctrl][Left]   

Moves to the last line         [Ctrl] + [Right Arrow]   [Ctrl][Right]   

Tabs right            [Tab]         [Tab]   

Tabs left            [Shift] + [Tab]      [Shift][Tab]   

Deletes a character         [Del]         [Del]   

Toggles insert mode         [Ins]         [Ins]   

Moves up one page         [Page Up]      [PgUp]   

Moves down one page         [Page Down]      [PgDn]   

Moves to the beginning of the line   [Home]         [Home]   

Moves to the end of the line      [End]         [End]   

Stops an action            [Esc]         [Esc]   

Function keys            [F1]-[F12]      [F1]-[F12]   

Example

The following command starts RBEdit and displays the file named OLDFILE for editing. If OLDFILE does not exist, the editor creates a new file and names it OLDFILE.

RBEDIT oldfile