WR O Find

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

version 6.0


WR O Find (area; criteria{; where{; method}}) Integer

ParameterTypeDescription
areaLongint4D Write area
criteriaTextString for which to search
whereInteger0=Partial word
1=Whole word
methodInteger0=Not case sensitive
1=Case sensitive
Function resultInteger0 if criteria is not found,
1 if criteria is found

Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR Find command.

Description

The command WR O Find searches for criteria in area, and if found, selects it. If criteria is not found, WR O Find returns 0. If criteria is found, WR O Find returns 1. WR O Find always begins searching from the position of the last character in the selected text. Because WR O Find selects criteria, its position can be obtained from the WR GET SELECTION command.

The optional where parameter determines whether criteria can match part of a word. If where equals 0, WR O Find selects criteria even if criteria is part of another word. If where equals 1, WR O Find will select criteria only if criteria is found as a whole word, criteria is surrounded by separator characters such as spaces or punctuation marks.

The optional method parameter determines whether the search will be case sensitive. If method equals 0, WR O Find selects criteria regardless of case. If method equals 1, WR O Find will select criteria only if the cases match.

See Also

WR Find.


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