Inserting Characters

At the Beginning Of Lines

If you have used the Line Editor, you are no doubt familiar with using the R command to insert characters at the beginning of lines. For example:

R6//*/

inserts an asterisk at the beginning of 6 lines.

The C (Comment) command provides a similar function in the Screen Editor. The command is called "comment" because its normal use is to 'comment out' lines by adding a comment character. In DataBasic, an asterisk (*) provides a comment character while Proc uses the letter 'C' or an asterisk (*).

Besides a single comment character, the C command can be used to insert any string of characters.

At the Ends of Lines

In the Line Editor you can insert a string at the end of several lines with a command such as:

AP10/string

You can achieve the same result in the Screen Editor with the C (Comment) command.

The Comment command gives you the option of inserting the string at the beginning or at the end of each line.