WR Get text
version 11 (Modified)
WR Get text (area; first; last) Text
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
Description
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 |
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)
See Also