ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file 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
Returns the name of an external file currently open. This file was opened by one of the following functions: fOpen, fCreate or fOpenTempFile.
Example
MyTestFileID is int
FileName is string
MyTestFileID = fCreate("C:\temp\TestCreation.txt")
FileName = fFileName(MyTestFileID)
Info("The file " + fExtractPath(FileName, fFile + fExtension) + ...
" was created in "+ fExtractPath(FileName, fDrive + fDirectory))
FileName is string
MyFile is DiskFile
MyFile = fCreate("C:\temp\TestCreation.txt")
FileName = fFileName(MyFile)
Info("The file " + fExtractPath(FileName, fFile + fExtension) + ...
" was created in "+ fExtractPath(FileName, fDrive + fDirectory))
Syntax
<Result> = fFileName(<File used>)
<Result>: Character string
Name and full path of the external file.
<Result> is a character string of the same type as the one passed to fOpen, fCreate or fOpenTempFile:
  • If these functions handled an Ansi character string, <Result> will be in Ansi format.
  • If these functions handled a Unicode character string, <Result> will be in Unicode format.
<File used>: Integer or DiskFile variable
Remarks
Component: wd300std.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/31/2022

Send a report | Local help