Jump to content
Welcome to the new FusionPro User Forum! ×

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...