4D Write v16WR Get text |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v16
WR Get text
|
WR Get text ( area ; first ; last ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Write area | |||||
first | Longint |
![]() |
First character of text | |||||
last | Longint |
![]() |
Last character of text | |||||
Function result | Text |
![]() |
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 mode | returns an empty string and generates the error 1024 |
last < first | returns an empty string and generates the error 1013 |
last > Length of area | returns the text contained in area |
The following example places the first 100 characters of area into the variable vText.
vText:=WR Get text(area;0;100)
Product: 4D Write
Theme: WR Text Manipulation
Number:
89194
Modified: 4D Write v11
4D Write Language ( 4D Write v16)