PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Finds a character string or a buffer in a file opened by fOpen.
Example
MyBuffer is Buffer
FileID is int
nPosition 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 MyFile at position " + nPosition)
END
Syntax
<Result> = fFind(<File identifier> , <Sought element> [, <Start position>])
<Result>: Integer
  • Position of the sought element in the file.
  • -1 if no element corresponds to the search.
<File identifier>: Integer
Identifier of the file to use. This identifier was returned when the file was opened by fOpen.
<Sought element>: Buffer or character string (with quotes)
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.
Component : wd250std.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment