DR Get text

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR Get text (area; scope) Text

ParameterTypeDescription
areaLongint4D Draw area
scopeLongint-3=Selected characters
-1=All
0=Selected
>0=Object ID
Function resultTextText of the objects in area

Description

The command DR Get text returns the text of the objects in area described by scope.

• If scope equals -3, the function returns the highlighted text of the selected object. If the insertion point is between characters, DR Get text returns an empty string.

• If scope equals -1, the function returns the text for the first text object in the document.

• If scope equals 0, the function returns the text of the first selected text object.

• If scope is greater than 0, it must be equal to a specific text object's ID; the function returns that object's text. If the object does not exist, DR Get text returns "*****" and DR Error returns error number 2.

Example

See the example for DR SET HIGHLIGHT.

See Also

DR SET TEXT.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next