| 4D Write v15WR DELETE SELECTION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D Write v15
 WR DELETE SELECTION 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WR DELETE SELECTION ( area ) | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint |   | 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.
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
	Product:  4D Write
	Theme:  WR Text Manipulation
	Number:  
        89449
        
        
        
	
	Created:  4D Write 6.5
	
	
	
	
	
	
	
	
	4D Write Language ( 4D Write v15)
	
	
	
	
	
	
	
 Add a comment
Add a comment