Yes, if there is no file "thePath" And I think we've discussed enough why this happens.
So to fix it so that it doesn't show an image at all if there is no file "thePath": if there is a file the short id of this card then put (specialFolderPath ("documents") & "/photos/" & the short ID of this card) into thePath set the filename of image "imageField1" of this card to thePath else ---here is a new line set the filename of image "imageField1" of this card to "" ---here is a new line end if Update your openCard script Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680681.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode