|
|
|
|
|
<DiskFile variable>.Find (Function) In french: <Variable FichierDisque>.Cherche MonBuffer is Buffer
MonFichierHtml is DiskFile
nPosition is int
MonBuffer = fLoadBuffer("C:\tmp\Page1.html")
MonFichierHtml.Open("C:\test\MonFichier.html")
nPosition = MonFichierHtml.Find(MonBuffer)
IF nPosition <> -1 THEN
Info("Le contenu de Page1 a été trouvé dans MonFichierHtml à la position " + nPosition)
END
Syntax
<Result> = <File used>.Find(<Search element> [, <Start position>])
<Result>: Integer - Position of the sought element in the file.
- -1 if no element corresponds to the search.
<File used>: DiskFile variable Name of the DiskFile variable initialized with <DiskFile variable>.Open or <DiskFile variable>.Create. <Search element>: Buffer or character string Buffer or character string whose content must be found in the text file. <Start position>: Optional integer Start position for the search. By default, the search is performed from the beginning of the file. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|