4D Write v14

WR Get selected text

Home

 
4D Write v14
WR Get selected text

WR Get selected text 


 

WR Get selected text ( area ) -> Function result 
Parameter Type   Description
area  Longint in 4D Write area
Function result  Text in Text selected in area

The WR Get selected text command returns the selected text in area.

If your database is not running in Unicode mode but in ASCII compatibility mode (former version 4D databases that are converted without the "Unicode Mode" preference being selected), the text returned will only contain the first 32,000 characters.

The following example places the selected text in area into the variable vText.

 vText:=WR Get selected text(area)

Your database was created with a former version of 4D and it was not configured in Unicode mode. You want to test the case where you have selected more than 32,000 characters:

 C_LONGINT($start;$end)
 C_TEXT($text)
 
 WR GET SELECTION(WritePicture;$start;$end`Recovery of selection limits
 If($end-$start>=32000) `If the difference is greater than or equal to 32,000, the selection returned will be truncated
    ALERT("Only the first 32,000 characters will be recovered.")
 End if
 $text:=WR Get selected text(WritePicture)

 
PROPERTIES 

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

 
HISTORY 

Modified: 4D Write v11

 
SEE ALSO 

WR GET PARAGRAPHS
WR GET SELECTION
WR Get text
WR GET WORDS

 
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)