FindText Method (RICHEDITTEXT)
9.0B, PLBCMP GUI Only
The FindText method locates a string of text in the contents of a RICHEDITTEXT object. The method uses the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A RICHEDITTEXT object that is accessed.
return
Optional. A Numeric Variable that indicates the success or failure of the method.
search
Required. A decimal number or Numeric Variable that specifies the search options.
text
Required. A Character String Variable or literal that specifies the text for whiich to search.
start
Optional. A decimal number or Numeric Variable that specifies the starting character position of the search.
end
Optional. A decimal number or Numeric Variable that specifies the ending character position of the search.
Flags Affected: EOS, OVER, ZERO
Note the following:
If the value returned is zero, the ZERO Condition Flag is set.
The OVER and EOS Condition Flags are always cleared.
The {search} value is a constant as defined in PLBMETH.INC or a numeric variable indicating one or more of the following option values:
|
Value |
Meaning |
|
$FR_DOWN |
Search from the top to the bottom |
|
$FR_WHOLEWORD |
Match only whole words |
|
$FR_MATCHCASE |
Perform a case-sensitive search |
If the {start} value is not provided, the search starts at the first character.
If the {end} value is not provided, the search ends at the last character.
A return value of zero (0) indicates that the string was not found.
A non-zero return value is the character position at which the string was found.
See Also: Method Syntax, RICHEDITTEXT Methods
![]() |