ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Used to find out if a data file exists, i.e. if it has been physically created (<Source>.Creation or <Source>.CreateIfNotFound).
Note: Substitutions currently being made to the data file (using functions HSubstDir, <Source>.ChangeDir and <Source>.ChangeName) are taken into account.
Example
// Description de la connexion
MaConnexion is Connection

// Test de l'existence d'un fichier de données Client/Serveur
IF MaConnexion.FileExist("MonFichier.FIC") = True THEN
	// Traitements
	...
END

Checking the existence of a data file in HFSQL Client/Server Hide the details

<Result> = <Connection>.FileExist(<Physical file>)
<Result>: Boolean
  • True if the physical data file exists on the server,
  • False otherwise.
<Connection>: Connection variable
Name of the Connection variable that describes the connection associated with the data file.
<Physical file>: Character string
Physical name of the searched data file. The file extension must be specified ("Customer.fic" for example).
Remarks
  • <Connection variable>.FileExist can be used whether the file is open or closed.
  • <Connection variable>.FileExist does not open the data file if it is closed.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help