Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6402 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

Is it possible to test if a file exists? I've got a client who wants to have an image library. Some images are JPGs, others TIF, etc. What I would like is a calculation like this:

Case(

FileExists(itemName & "JPG); $$image_path & itemName & *.JPG);

FileExists(itemName & "TIF); $$image_path & itemName & *.TIF)

)

Hope that makes sense,

Norman

Posted

I am not sure what you plan to do with the result, but a file reference can contain several alternative paths separated by carriage returns. So something like

filepath & filename & ".jpg" & ¶ & filepath & filename & ".tif"

should work for most uses.

This topic is 6402 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.