Deep Thought II Posted October 7, 2004 Posted October 7, 2004 hi all~ is there a function that can get the field contents when it is made as a button? or to know the field name that is being pressed? i am trying to make a calendar solution, and thanks to a guy who generously gave out a free one, but there are 37 day fields, and the user click on a day on the calendar, i wish to know which one was pressed... thanks~
LaRetta Posted October 7, 2004 Posted October 7, 2004 Try using Get(ActiveFieldContents) and Get(ActiveFieldName).
Deep Thought II Posted October 7, 2004 Author Posted October 7, 2004 i did~ but that seems to work only if the cursor is within the field, and when the field is made into a button it doesn't let mouse cursor enter at all
Oldfogey Posted October 7, 2004 Posted October 7, 2004 I THINK this will work - Go to Next Field Go to Previous Field before LaRetta's steps.
Deep Thought II Posted October 7, 2004 Author Posted October 7, 2004 nope, no luck i hardcored 37 scripts...
Chuck Posted October 7, 2004 Posted October 7, 2004 If you're using 7, you don't need 37 scripts, just 37 parameters. Each button could pass a different parameter to the script being called, but each button could call the same script. True, not as good as being able to just pass the field name (or repetition number), but it's better than 37 different scripts. Chuck
Deep Thought II Posted October 7, 2004 Author Posted October 7, 2004 yea~ thanks chuck for the tip, it's not too late yet for me to change this. later the script might grow more complicated too. that's a big help~
Recommended Posts
This topic is 7614 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