The DELETE command simulates pressing the DELETE key on the keyboard. Each DELETE statement deletes the character at the cursor position. After the character is deleted, the characters to the right of the cursor position shift one space to the left. Note that the DELETE command does not have an operand. If you want to delete multiple characters, you have to repeat the command or use a loop. For example, both of the following program segments delete five characters to the right of the cursor position.
A Program Repeating the Command
DELETE
DELETE
DELETE
DELETE
DELETE
A Program Using a Loop
SET A1,0
DELETE DELETE
ADD A1,1
COMPARE A1,5
BRANCH LT,DELETE
STOP
|
Copyright © 2013 CA.
All rights reserved.
|
|