Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

[color:red]Hello,

I am creating a simple picture browser and would like to be able to display the filename of the picture that I insert into a container field (as a reference).

There is no obvious script step or function to do that. I'd love to get some help her, thanks 1M

Posted

No, it's not obvious. But GetAsText ( container field ) returns 3 lines of info (result Text). Here is a calculation which extracts the file name (target your container field where I put "Contain").

Let ( [

txt = GetAsText ( Contain );

path = GetValue ( txt; ValueCount (txt));

pat = PatternCount ( path; "/");

pos = Position ( path ; "/" ; 1 ; pat )

];

Right ( path; Length (path) - pos)

)

Posted

By golly, this is exactly want it wanted!

Thanks a lot!

This topic is 6036 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.