4D Write v16

WR DELETE SELECTION

Home

 
4D Write v16
WR DELETE SELECTION

WR DELETE SELECTION 


 

WR DELETE SELECTION ( area ) 
Parameter Type   Description
area  Longint in 4D Write area

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 DELETE PICTURE IN PAGE

 
PROPERTIES 

Product: 4D Write
Theme: WR Text Manipulation
Number: 89449

 
HISTORY 

Created: 4D Write 6.5

 
ARTICLE USAGE

4D Write Language ( 4D Write v16)