February 28, 200124 yr 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).]
February 28, 200124 yr 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
March 1, 200124 yr 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"
Create an account or sign in to comment