Asu Posted July 13, 2008 Posted July 13, 2008 [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
Fenton Posted July 13, 2008 Posted July 13, 2008 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) )
Asu Posted July 14, 2008 Author Posted July 14, 2008 By golly, this is exactly want it wanted! Thanks a lot!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now