ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
Changes the extension of a file on disk.
Example
IF fChangeExtension("C:\Répertoire\Sauvegarde.txt", ".old") = True THEN
fSaveText("C:\Répertoire\Sauvegarde.txt", MaChaîneTexte)
ELSE
ErrorInfo()
END
Syntax
<Result> = fChangeExtension(<File path> , <New extension>)
<Result>: Boolean
  • True if the size changed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<File path>: Character string
File to be used (up to 260 characters). This parameter can correspond to:
  • a file name. This file will be automatically searched in the current directory (returned by fCurrentDir).
  • a file name with its full or relative path. A UNC path can be used.
<New extension>: Character string
New extension. If the new extension does not have a leading dot ".", it will be added automatically.
Remarks
If fChangeExtension handles a file with multiple extensions, only the last extension will change. For example, if you change the extension of "MyFile.log.doc", the result will be "MyFile.log.docx".
Business / UI classification: Business Logic
Component: wd290std.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/02/2024

Send a report | Local help