Jump to content

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

Recommended Posts

Posted

Hi all:

It's been a while since I've actually developed in FM, I come back and they got this new fangled FM7 out...dang it was comfortable under my rock.

Anyways, I have 7 but I am still working in 6. I know I have used Troi file plugin to get the name of a file that I have specified. Well I want to be able to do that without the plugin. Is there a freeware plugin or some fancy external function that somebody has come up with? Say I insert a reference to a .jpeg in a container. Can I get the name of the actual image file by means of a calc field or script, and without the Troi plugin?

Thanks for your help!!!

Posted

Hey Kenneth, good to see you around!

You can retrieve a container's path by using GetAsText(container). If you only want the image's filename, try Substitute( RightValues( Substitute( GetAsText(containerfield); "/";

Posted

Hey thanks, "ralphie." When did you make moderator? Nice to see ya.

However, I found the GetAsText function in 7, I don't think it exists in 6. I think I'll have to either break down and buy the multilicense for Troi File, or the server version of 7 crazy.gif

Posted

My bad. I misread your question in a hurry. No, I don't think there is a way to retrieve it in 6 without using a plugin. Sorry.

I think I became a moddy back around 2500 posts. It's all a foggy memory now. Scary though, ain't it? wink.gif

  • 3 weeks later...
Posted

kenneth2k1, did you find a work around for your problem?

I'm going through the same thing as I need to modify current container field's reference link to a new destination link in FM version 5 on a Windows OS.

I don't think FM5 has GetAsText and not sure if we going to bug down for Version 7. However, I looked at Troi plug-ins and couldn't find functions that does what I want as stated above, "...modify current container field's reference link to a new destination link"

Thanks in advnace for your help.

~rich

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