file not found

i am writing a program which, using text in an editbox, opens a given file. eg. on form create if the edit box says photo1.jpg, photo1.jpg opens, if photo1.jpg is not there, the program gives an error. what do i need to say so that if the file does not exist a label appears (the latter bit is no problem).

eg.
[code]

if you cannot find photo1.jpg' then
begin //no problem from here!
image1.Visible:=false;
label2.visible:=true;
end;

[/code]

thanks

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion