Skip to content

Flow documentation · legacy product

ChangeFileExt ​

Declaration ​

Function ChangeFileExt( const FileName, Extension : string) : string

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := ChangeFileExt(Source.FileCon.CurrentFilename, '.dat');
end;

Description ​

Changes the extension on the given file path. Filename parameter can be either a file name or a complete file path. Extension parameter should be given with the full-stop.

Note: Example and Description corrected January 2012. Previous version had Extension parameter without the full-stop.