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

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

Recommended Posts

Posted

Is there a script that can...

If I enter a large field of text, insert my curser somewhere in the text, then hit a button, can the script with that button then insert text where my curser point is in the text field? And can the text it inserts be text from another field (I know how to do this part up to here)?

And for the part I cant figure out...when it inserts the text from the other field can it maintain the formatting that the other field might have, in particular, the color of the text?

The reason I ask is that I currently have a time stamp button that inserts the current date and time at the curser point in a text field. I was just trying to figure out way to have it be colored red. I figured my script could first insert the time stamp into a global field whose text is formatted red, then take the contents from the global field and insert it at the curser point in another field.

LR

Posted

One of the demo files kicking around on my web site shows just such a technique.

You'd be welcome to download it and see if you think it would be suitable for your current requirement if you like.

The web address to retrieve the demo file is:

http://www.nightwing.com.au/FileMaker/demos/InsertFormattedText.zip

It's password free so you can access the scripts, field definitions and layouts to see what's what.

Hope that will give you something to work with.

Posted

Well, Ray ... This AND ClickTips! We don't need FM to improve their program, laugh.gif Ray's doing it for them!!! Hey, Ray, there's a wish list on the Cafe' you could take a look at grin.gif Thanks for all you do for us!

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