Jump to content

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...