Command WR Get text

4D Write

WR Get text

version 11 (Modified)


WR Get text (area; first; last) Text

ParameterTypeDescription
areaLongint4D Write area
firstLongintFirst character of text
lastLongintLast 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 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)

See Also

WR GET PARAGRAPHS, WR Get selected text, WR GET SELECTION.