28-12-2022, 10:31 PM
<p>
(28-12-2022, 08:57 AM)larbiparadox كتب : الكود الصحيح<br><br>جزاك الله خيراا بارك الله فيك في ميزان حسناتك انشاء الله </p>
كود :if edit1.Text = '' then begin showmessage('empty !'); Abort; End; if FileExists(PChar(FileListBox1.Directory+'\'+Edit1.Text+'.mdb')) then begin showmessage('il''est existe déjà !!'); end else begin CopyFile(PChar(FileListBox1.Directory+'\'+'Unit1.dcu'),PChar(FileListBox1.Directory+'\'+Edit1.Text+'.mdb'),True); // CopyFile('model.mdb',PChar(Edit1.Text+'.mdb'),false); FileListBox1.Update; END;

