TOpenDialogTitle (C++)
Description
Click the button to open a TOpenDialog, then select a file to delete.
Code
void __fastcall TForm1::Button1Click(TObject *Sender)
{
OpenDialog1->Title = "Delete File";
if (OpenDialog1->Execute())
{
if (FileExists(OpenDialog1->FileName))
DeleteFile(OpenDialog1->FileName);
}
}
Uses
- Vcl.Dialogs.TOpenDialog.Title ( fr | de | ja )
- Vcl.Dialogs.TOpenDialog.FileName ( fr | de | ja )
- System.SysUtils.DeleteFile ( fr | de | ja )