Sep 1, 2005 #1 binbyte Technical User Nov 24, 2004 11 AR Help friends I am writing a delphi program from visual basic and have a problem with visual basic filecopy: CMDialog.Filename <> "" Then FileCopy "outfile.txt", CMDialog.Filename where CMdialog is from commondialog it`s posible use CopyFile and how?
Help friends I am writing a delphi program from visual basic and have a problem with visual basic filecopy: CMDialog.Filename <> "" Then FileCopy "outfile.txt", CMDialog.Filename where CMdialog is from commondialog it`s posible use CopyFile and how?
Sep 1, 2005 #2 Zathras Programmer Nov 12, 2002 3,317 US The CopyFile function is in Windows.pas TOpenDialog is in Dialogs.pas Assuming you are prompting the user to find the file to be copied, you can use TOpenDialog to allow him/her to find it. If you are prompting for a file to be replaced, you can use a TSaveDialog. Upvote 0 Downvote
The CopyFile function is in Windows.pas TOpenDialog is in Dialogs.pas Assuming you are prompting the user to find the file to be copied, you can use TOpenDialog to allow him/her to find it. If you are prompting for a file to be replaced, you can use a TSaveDialog.
Sep 2, 2005 #3 Spent Programmer Mar 20, 2003 100 BG A little Example for you Code: var dlgOpen:TOpenDialog; .. if dlgOpen.Execute // CMDialog.Filename <> "" then CopyFile(dlgOpen.FileName,..); Tell us if you have any results Regards, Spent Upvote 0 Downvote
A little Example for you Code: var dlgOpen:TOpenDialog; .. if dlgOpen.Execute // CMDialog.Filename <> "" then CopyFile(dlgOpen.FileName,..); Tell us if you have any results Regards, Spent