4D Write v14WR Direct find |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v14
WR Direct find
WR Direct find
The WR Direct find command allows you to directly search for a character string in a BLOB that contains a 4D Write area. Using this command does not require the BLOB to be opened in a 4D Write area first. This means that this command executes very quickly. If the character string is found, WR Direct find returns the position of the character string in the text. If the search was unsuccessful, WR Direct find returns -1. If blob does not represent the contents of a 4D Write area, WR Direct find returns -2. wholeWord and upperCase allow you to choose some options for the search. In the wholeWord parameter, you can pass one of the following constants, found in the WR Parameters theme:
In the upperCase parameter, you can pass one of the following constants, found in the WR Parameters theme:
This example proposes a keyword-based search method that searches in a selection of records. Your database manages cooking recipes. The 4D Write areas are saved in BLOB fields. You want to be able to find all recipes that use a specific ingredient. Here is the corresponding method, which is very fast: ToFind:=Request("Enter the ingredient(s) to find:") |
PROPERTIES
Product: 4D Write
HISTORY
Created: 4D Write 6.5 SEE ALSO ARTICLE USAGE
4D Write Language ( 4D Write v11.6) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||