|
|
|
|
|
<Document variable>.Seek (Function) In french: <Variable Document>.Recherche Finds a character string in an entire Document variable. MonDocument is Document
tabFragments is array of docFragment = MonDocument.Find("%NomClient%")
FOR EACH f OF tabFragments
f.Texte = Client.Nom
END
MonDocument is Document
tabFragments is array of docFragment = MonDocument.Find("BEAUGRAND")
IF tabFragments.Count >= 1 THEN
MonDocument.Cursor = tabFragments[1].StartPosition
MonDocument.SelectionLength = ...
tabFragments[1].EndPosition - tabFragments[1].StartPosition+1
tabFragments[1].Formatting.TextColor = PastelRed
BREAK
END
Syntax
<Result> = <Document>.Search(<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. <Document>: Document variable Name of the Document variable to be used. <Text to find>: Character string Text to find in the document <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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|