CS8C © Stäubli 2009 – D28070504A
145 / 248
Chapter 6 - Operation
The editor makes sure at all times that the program is coherent. This means that when a compound statement (if,
while, for …) is deleted, the corresponding instruction is deleted.
Example:
It is possible to mark instructions in order to globalize certain actions (copy, delete).
• If a composite statement is selected, all the instructions between the start and the end are also selected.
• Deselection of a composite statement deselects only that statement.
This means, for example, that to mark all the instructions contained between a "while" and an "endWhile", all that
has to be done is to mark " While" twice.
Example:
There is a clipboard enabling you to copy instructions. Make sure that the instructions are valid in the program in
which they are pasted. Be careful with the local variables!
if nb>0 put("True")
put("True") put("false")
else Removal of if
put("false")
endif
if nb>0 if nb>0
put("True") put("True")
else Removal of else put("false")
put("false") endif
endif
while
put ("Press any key")
get()
endwhile
Selection of "While" or
"endWhile".
All the instructions are selected and
the selection goes after "endWhile"
# while
# put ("Press any key")
# get()
# endwhile
# while
# put ("Press any key")
# get()
# endwhile
Deselection of "While" or
"endWhile".
Automatic deselection of "While"
and "endWhile"
while
# put ("Press any key")
# get()
endWhile