Click or drag to resize

RichEdit.GetWordBreak Method

X#
Locate a particular type of word break in the rich edit.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD GetWordBreak(
	nCharPos,
	kWordBreakType
) AS USUAL CLIPPER
Request Example View Source

Parameters

nCharPos (Optional)
Type: Usual
The character position from which to find the work break.
kWordBreakType (Optional)
Type: Usual
One of the following constants representing the type of word break to retrieve:

Return Value

Type: Usual
If kWordBreakType is REGWB_ISDELIMITER this function returns a logical value that is TRUE if the specified character is a delimiter and FALSE otherwise. If kWordBreakType is any other value, the function returns a numeric value representing the character position of the word break.
Remarks
ConstantDescription
REGWB_ISDELIMITERDetermines whether the specified character is a delimiter. This option causes a logical return value.
REGWB_LEFTFinds the nearest character before the specified position that begins a word.
REGWB_LEFTBREAKFinds the next word end before the specified position.
REGWB_MOVEWORDLEFTFinds the next character that begins a word before the specified position.
REGWB_RIGHTFinds the nearest character after the specified position that begins a word.
REGWB_RIGHTBREAKFinds the next word end after the specified position.
REGWB_MOVEWORDRIGHTFinds the next character that begins a word after the specified position.
See Also