Combining Adjacent Lines
Deleting An Attribute Mark
Each item in a Reality file consists of fields separated by attribute marks. If you delete the attribute mark on the current line, the current line is concatenated with the following line, resulting in one field.
Example
0001 FOR X=1 TO 10
0002 TOTAL=TOTAL+ITEM
0003 NEXT X
Place the cursor on Line 0001. Press CTRL+R (Cursor Far Right). The cursor is now positioned on the attribute mark at the end of Line 0001. Press D (Delete Character) to delete the attribute mark. The result is:
0001 FOR X=1 TO 10 TOTAL=TOTAL+ITEM
0002 NEXT X
Without moving the cursor, press R (Replace Character) and type a semicolon (;) to properly separate the multiple command. Press D to delete the extra space. The result is:
0001 FOR X=1 TO 10; TOTAL=TOTAL+ITEM
0002 NEXT X
To combine Line 0002 with Line 0001, press CTRL+R again. Press D. The result is now:
0001 FOR X=1 TO 10; TOTAL=TOTAL+ITEMNEXT X
Note that there is no space after 'ITEM' or before 'NEXT' so the two words were concatenated. Without moving the cursor, press J (Insert Character), press the SPACEBAR to enter a space, press J again, and then type a semicolon (;). The result is now:
0001 FOR X=1 TO 10; TOTAL=TOTAL+ITEM; NEXT X
Replacing An Attribute Mark
A simpler method of achieving the above result would be to position the cursor at the attribute mark, press R (Replace Character) and type a semicolon (;). This replaces the attribute mark with a semicolon in one operation.
Locating An Attribute Mark
CTRL+R always places the cursor at the attribute mark at the end of the current line. Alternatively, place the cursor at the beginning of the following line and press BACKSPACE. If you use the View command (V), the attribute mark is displayed as (^). This eliminates any doubt about where the attribute mark actually is.
Use in Proc
If you are editing a Proc item, you can use the same procedures to combine lines. Replace the attribute mark with CTRL+\ instead of a semicolon.