rdechant Posted July 6, 2011 Share Posted July 6, 2011 Newbie - be gentle. The directory is named with the variable info - how do I script this? Pic = CreateResource("http://assets.lincolnelectric.com/assets/en_US/Products/" (Field("MATERIAL") "/1200x1200.jpg", "graphic", true); if (Pic.exists) return Pic; else return Resource("PhotoNotAvailable"); Link to comment Share on other sites More sharing options...
Andre Globensky Posted July 7, 2011 Share Posted July 7, 2011 Hi, you are missing the + sign in your path Pic = CreateResource("http://assets.lincolnelectric.com/assets/en_US/Products/" + (Field("MATERIAL") + "/1200x1200.jpg", "graphic", true); and for the test ( if (Pic.exists) ), as far as i know you cannot test an external file (http) if it exist. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.