In BCB, there is a convenient way to determine file existing or not.
FileExists()
extern PACKAGE bool __fastcall FileExists(const AnsiString FileName);
Us usally we use if loop for action in next.
if (FileExists(NewFile))
{
ThumbImg->Picture->LoadFromFile(NewFile);
}
沒有留言:
張貼留言