Use the FileExists("path to image here") function to detect that the file actually exists.

This should work fine as long as you are not creating 0 length files or something hehe.

Mike.

John Ivanoff wrote:
I have first and last names of people
When I select a person I check a directory to see in there is a jpeg
in there that natches the name
example
name: "John Doe"
I look for "John Doe.jpg"

and I have this working. but I don't have photo's for all the people.
If there is not a match I'll show a silhouette photo.
I know it's a simple if then statement but I don't know check to see
if I really have an image. Like file size?

Thanks.
John

_______________________________________________
Reply to DFWCFUG:  [email protected]
Subscribe/Unsubscribe:  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:    http://www.mail-archive.com/list%40list.dfwcfug.org/              http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:  www.instantspot.com/
 www.teksystems.com/

_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to