You can't use a get function because, oddly enough, clicking a button does not give that button the focus. And you can't click a field formatted as a button to put the cursor into the field--the only way that a field can become the "active field".
But you can use the script parameter box for the button to pass the fieldname or the field's contents as a script parameter.
When passing a field's name as a script parameter, I recommend using the GetFieldName function:
This seems more complex than simpley using: "YourTable::YourFIeld", but using GetFieldName like this insures that if you later go to Manage | database | Fields and change the name of the field, your button will still pass the corrrect field name to the script.
It's been a few years since I've played with FM. Don't know why I didn't think of that but I'm sure glad YOU DID!!
Works like a charm!!
Thanks a million!