|
|
|
|
|
fFind (Function) In french: fCherche Finds a character string or a buffer in a file opened by fOpen.
MyBuffer is Buffer
FileID is int
MyBuffer = fLoadBuffer("C:\tmp\Page1.html")
FileID = fOpen("C:\test\MyFile.html")
nPosition = fFind(FileID, MyBuffer)
IF nPosition <> -1 THEN
Info("The content of Page1 was found in the file at position " + nPosition)
END
MyBuffer is Buffer
MyHTMLFile is DiskFile
nPosition is int
MyBuffer = fLoadBuffer("C:\tmp\Page1.html")
MyHTMLFile = fOpen("C:\test\MyFile.html")
nPosition = fFind(MyHTMLFile, MyBuffer)
IF nPosition <> -1 THEN
Info("The content of Page1 was found in MyHTMLFile at position " + nPosition)
END
Syntax
<Result> = fFind(<File used> , <Search element> [, <Start position>])
<Result>: Integer - Position of the sought element in the file.
- -1 if no element corresponds to the search.
<File used>: Integer or DiskFile variable <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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|