AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
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
Finds a character string or a buffer in a file opened by <Variable FichierDisque>.Ouvre.
Example
MyBuffer is Buffer
MyHTMLFile is DiskFile 
nPosition is int

MyBuffer = fLoadBuffer("C:\tmp\Page1.html")
MyHTMLFile = Open("C:\test\MyFile.html")
nPosition = MyHTMLFile.Find(MyBuffer)

IF nPosition <> -1 THEN
Info("The content of Page1 was found in MyHTMLFile 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 <Variable FichierDisque>.Ouvre or 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
Component: wd290std.dll
Versión mínima requerida
  • Versión 28
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 01/11/2023

Señalar un error o enviar una sugerencia | Ayuda local