|
|
|
|
|
DocFind (Function) In french: DocFind Finds a character string: - in an entire Word Processing document.
- in a fragment.
tabFragments is array of docFragment = DocFind(TT_MonDocument, "%NomClient%")
FOR EACH f OF tabFragments
f.Texte = Client.Nom
END
tabFragments is array of docFragment = DocFind(TT_SansNom1, "BEAUGRAND")
IF tabFragments.Count >= 1 THEN
TT_SansNom1.Curseur = tabFragments[1].StartPosition
TT_SansNom1.LongueurSélection = ...
tabFragments[1].EndPosition - tabFragments[1].StartPosition+1
tabFragments[1].Formatting.TextColor = PastelRed
BREAK
END
Syntax
<Result> = DocFind(<Search scope> , <Text to find> [, <Options>])
<Result>: Array of docFragment variables Array of docFragment variables corresponding to all the document fragments where the searched text was found. <Search scope>: Document variable, docFragment variable or control name Element where the search will be performed. This element can correspond to: <Text to find>: Character string Text that must be found in the specified element. <Options>: Optional constant (or combination of constants) Search options: | | IgnoreCase | Case and accent insensitive search (ignores uppercase and lowercase differences). | WholeWord | Whole word search (enclosed in punctuation characters or spaces). |
By default, the search is case sensitive: the text searched for must have the same case as the text to be found. To perform a case-insensitive search, use the IgnoreCase constant. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|