ImageEn, unit iexFolderMView

TImageEnFolderMView.RenameFile

TImageEnFolderMView.RenameFile


Declaration


function RenameFile(idx : Integer; const sNewName : string) : boolean;


Description


Renames the file at idx to sNewName using the standard windows functionality.

Note: sNewName must be a name only, without a folder path

Result is true unless an error was encountered.

If you specify IEF_CURRENT_FILE for idx then currently selected file will be renamed.

Note: Has no effect for files on a device folder


Example


// Rename current file to "Selected.jpg"
RenameFile(IEF_CURRENT_FILE, 'Selected.jpg');