|
||||||
| Pascal/Delphi Forum for discussing Borland Delphi and Pascal coding techniques, tips and tricks. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Use FileExists function. If file exists, then this function will return True.
procedure TForm1.Button1Click(Sender: TObject); begin if FileExists(Edit1.Text) then ShowMessage('File already exists!') else ShowMessage('This file is unique'); end; |
|
|||||
|
Quote:
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Project: ionFiles - Joomla Simple File Download | Jordan | Community Projects | 305 | Today 12:30 PM |
| Windows XP Tricks & Tips!!!!..new ones. | pranky | Tutorials | 9 | 08-23-2008 03:22 PM |
| Check if a file exists | Lop | C and C++ | 4 | 08-07-2006 10:03 PM |
| Check if a File Exists | NeedHelp | C# Programming | 4 | 08-07-2006 05:20 PM |
| Check if a URL Exists | Chan | PHP Forum | 1 | 07-13-2006 12:54 PM |
| Xav | ........ | 1333.07 |
| MeTh0Dz|Reb0rn | ........ | 1055.7 |
| John | ........ | 881.37 |
| morefood2001 | ........ | 879.43 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 851.68 |
| Brandon W | ........ | 757.44 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 247.05 |
| dcs | ........ | 217.87 |
Goal: 100,000 Posts
Complete: 82%