Quick
Entry
Using shortcuts for lightning fast number data entry |
Last Updated 28th Feb 1998
|
I recently came across a very ingenious way of facilitating data entry of numbers especially large ones. The technique allows the user to enter numbers using shortcuts like-
Some of the obvious advantages of providing such a means of data entry are-
The code for ItemError and f_eval_amt() is shown below-
ItemError Event
String Str_Col
|
global function integer f_eval_amt (string astr_amt, ref decimal
adec_amt);
///////////////////////////////////////////////////////////////////////
String Str_ShortCut, Str_Number
//Check for a valid string
//The passed string should end with a valid shortcut
If Str_ShortCut <> 'M' And &
Dec_Number = Dec(Str_Number)
Return 1
|