file not found

Sjoerd Op 't Land sjoerdoptland at mac.com
Wed Jan 23 12:16:06 EST 2002


mazzapaolo at liber wrote/ schreef:

> I have a line like this:
> 
> set the fileName of image "myImage" to "image.gif"
> 
> If the file exists it works fine.
> If the file does not exists, the image "myImage" gets blank, the result
> is empty, and I do not get any error-message.
> How can I get a beep when Rev can not find the file?

Try this one:

  set the fileName of image "myImage" to "image.gif"
  if the size of image "myImage" is 0 then beep

> Thank you for your help,
> 
> Paolo Mazza (Italy)
Regards, / Groeten,
Sjoerd




More information about the use-livecode mailing list