Welcome to the forum.
Instead of 'Insert Text' use 'Set Field', setting the target field to your number field, and the calculated result calling your number field first and then inserting the number after.
If you are using a script to set the field, call the script with a Script Parameter set to the number you wish to insert, so for the button of number 1 the parameter will be 1, and then you can have a simple one line script called by all 10 numbers.
The script would then be:
Set Field [ Table::YourNumberField ; Table::YourNumberField & Get ( ScriptParameter ) ]
I hope this makes sense, let me know if you need any extra explanation.
Many thanks for your swift reply!
I have entered in the Script, using the 'Specify Calculation' dialog to enter the 'Get' portion.
But i have Get (1) and an error message tells me 'This parameter is an invalid Get function Parameter'
Is there more i'm not entering correctly.
The Get ( ScriptParameter ) function will get its value as the script is called, so enter it as "Get ( ScriptParameter )" and then while setting up the button, when you specify the script, put the button number in the Optional Script Parameter box under the list of scripts.
Try this and let me know how you get on.
Perfect! Thank you very much! I now understand that a bit better. It is difficult to get my head around it all.
Does this mean i can use this script to call any keyboard stroke i want?
Like, i'm trying to do printing via the Internet. And was going to build a 'print' button that would call Func-P, then <enter> etc. etc. to automate the process.
Thanks again, the way you have described it is very simple and accurate, much appreciated.
Not a problem Harry,
You can use this particular script to populate that set field with any value you put in the Script Parameter on the button.
You can copy the script and reuse it on other fields with other buttons etc.
Glad I could help.
If you want to use your graphic keypad to fill in any field that your cursor happens to be in, modify the script to read:
Set Field [Get(ActiveFieldContents) & Get ( ScriptParameter ) ]
I am trying to do the same thing as you. I am new to FM Pro 12 and not haveing much luck. the explanation below is slightly puzzling me.
Can you help?