4D Write v14WR GET WORDS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v14
WR GET WORDS
WR GET WORDS
The WR GET WORDS command returns the position of the first character of the first word of the selection and the position of the last character of the last word of the selection. It also specifies if the last character of the selection is a space. If no text is selected, beginSel and endSel returns the first and last character of the word the cursor is in. If the selection begins in the middle of a word (or between the last character of a word and the next following space), beginSel will return the position of the first character of that word. If the selection ends in the middle of a word, there are two possible cases:
The following example scans the document and retrieves the position of the first and last characters for each word. `Placing the cursor at the beginning of the area |
PROPERTIES
Product: 4D Write
HISTORY
Created: 4D Write 6.5 ARTICLE USAGE
4D Write Language ( 4D Write v11.6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||