I want to add a command button (actually a series of command buttons) to a form that will increment/add to an 'amount' field by a pre-defined value each time it is pushed. eg. amount field currently set at 0. push the "50" button and amount field changes to 50.00, then push the "20" button and the amount field changes to 80.00.
Can anyone suggest a neat solution to this problem.
Thanks
Paul
0
Answers
Is this an amout filed where where a "line no" will be involved? aka sales line?
You'll need some setfilters else,
if it's just some field on the item card for example - you'll need to add code to the command button ONPUSH trigger like
(50 button)
Amount := amount + 50;
modify;
(20 button)
Amount := amount + 20;
modify;
http://www.BiloBeauty.com
http://www.autismspeaks.org
and no there is no line number, it should just populate a variable amount field (call it "tender")
is it a variable on the form or a field in a table?
http://www.BiloBeauty.com
http://www.autismspeaks.org
http://www.youtube.com/watch?v=Rlv-3eaGsBs
Note: you can call up MS Calculator from a form real easy tho.
Add a command Button
Caption: Get Calculator
PushAction:RunSystem
RunCommand:calc.exe
Save->Compile->Enjoy
http://www.BiloBeauty.com
http://www.autismspeaks.org
if you're short of a challenge, see if you can fix my keypad problem, on the same form to be able to enter the amount only using buttons
Step 1 : get a touchscreen
Step2 : Read Kriki's example
You need an on form calculator?
Something similar to the Date Formula Calculator?
http://www.mibuso.com/dlinfo.asp?FileID=514
but with just numbers? You can probably modify this form.
But you'll need to calc a mathimatic expression.
viewtopic.php?f=23&t=14820
Put them together & you should have a calculator [-o<
http://www.BiloBeauty.com
http://www.autismspeaks.org
what i want is to have keypad buttons on a form that the user can click/touch to enter an amount so that it replaces the keyboard
eg. press button "1" -> press button "5" -> press button "." -> press button "9"
amount field should then show 15.90
You mean like this?
http://www.youtube.com/watch?v=ThPKg549nHo
Import the txt file to play with it.
https://docs.google.com/document/edit?i ... azE&hl=en#
Props to Andy Sandefer who's Date Formula Calculator was the roadmap.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I was going down the same path as you with the date formula add on but didn't quite get there
EVALUATE(EnterAmount,EnterString);
The EnterAmount (Decimal) can be switched out to the field you need it in.
Good Luck!
http://www.BiloBeauty.com
http://www.autismspeaks.org