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

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

Recommended Posts

Posted

I am developing a cross platform solution that will have a series of global fields which will be assigned a button function. What I want to happen is that when the button is clicked, the contents of the field are copied to the clipboard. Easy with a separate script for each button. I would like a single script that "reads" the contents of the field that is clicked. Any ideas?

[This message has been edited by esteshk (edited February 28, 2001).]

Posted

What you have here is not a FM problem, but a logical inconsistency. SOMETHING has to indicate what button was clicked. If you can determine which button was clicked by the contents of the fields, just put a bunch of If() tests in your script, one for each button position. There is no way I know of to "read" a cursor position or such from a FM script.

Sounds like a case where you need to tell us what (at a higher level) you are trying to accomplish. You may have to rethink the whole process. -bd

Posted

Here's a pretty simplistic method that works, is not very elegant, but I use all the time:

Each button calls a 2 line script. Line 1

does a Set Field to a field called "Which Button" that sets the button name. The next line calls the processing routine that just tests "Which Button"

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