Command WR DELETE SELECTION

4D Write

WR DELETE SELECTION

version 6.5


WR DELETE SELECTION (area)

ParameterTypeDescription
areaLongint4D Write area

Description

The WR DELETE SELECTION command allows you to delete the current text selection from the 4D Write area referenced by area.

Using the following statement will have the same effect as using the WR DELETE SELECTION command: WR EXECUTE command (area; wr cmd clear ).

Note: The value of the wr cmd clear constant is 6.

If there is no current selection, the command has no effect, unlike the WR BACKSPACE command that would delete the character located before the cursor.

Example

You want to delete all soft hyphens in your document:

      `Counting number of occurrences
   HyphenNb:=WR Count(Area;wr nb soft hyphens)
   For($i;1;HyphenNb)
         `Selecting each time the first soft hyphen is found
      WR SELECT(Area;9;1)
         `Deleting it
      WR DELETE SELECTION(Area)
   End for 

See Also

WR BACKSPACE, WR DELETE PICTURE IN PAGE.