4D Write v14

WR Get text

Home

 
4D Write v14
WR Get text

WR Get text 


 

WR Get text ( area ; first ; last ) -> Function result 
Parameter Type   Description
area  Longint in 4D Write area
first  Longint in First character of text
last  Longint in Last character of text
Function result  Text in Text between first and last characters

The WR Get text command returns the text in area between the character described by first and the character described by last.

The maximum number of characters 4D can store in a field or variable is 2 GB. Therefore, WR Get text can return a maximum of 2 GB if the database is running in Unicode mode or 32,000 characters if the databsae is running in ASCII compatibility mode.

If...WR Get text...
last - first > 32 000, database in ASCII modereturns an empty string and generates the error 1024
last < first returns an empty string and generates the error 1013
last > Length of areareturns the text contained in area
WR Get text does not change the selected text in area.

Example  

The following example places the first 100 characters of area into the variable vText.

 vText:=WR Get text(area;0;100)

 
PROPERTIES 

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

 
HISTORY 

Modified: 4D Write v11

 
SEE ALSO 

WR GET PARAGRAPHS
WR Get selected text
WR GET SELECTION

 
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)