ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 28 feature!
Help / WLanguage / WLanguage functions / Standard functions / External file management functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<DiskFile variable>.Find (Function)
In french: <Variable FichierDisque>.Cherche
Finds a character string or a buffer in a file opened by fOpen.
Example
MyBuffer is Buffer
MyFile is DiskFile
nPosition is int
 
MyBuffer = fLoadBuffer("C:\tmp\Page1.html")
MyFile = fOpen("C:\test\MyFile.html")
nPosition = MonFichier.Find(MyBuffer)
 
IF nPosition <> -1 THEN
Info("The content of Page1 was found in MyFile at 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 fOpen or fCreate.
<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
Component: wd280std.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/24/2022

Send a report | Local help