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"); Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.