4D Write v14

WR DELETE SELECTION

Home

 
4D Write v14
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

 
PROPERTIES 

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

 
HISTORY 

Created: 4D Write 6.5

 
SEE ALSO 

WR DELETE PICTURE IN PAGE

 
ARTICLE USAGE

4D Write Language ( 4D Write v11.6)
4D Write Language ( 4D Write v12)
4D Write Language ( 4D Write v14)
4D Write Language ( 4D v13)
4D Write Language ( 4D Write v14 R2)
4D Write Language ( 4D Write v14 R3)
4D Write Language ( 4D Write v14 R4)