|
|
Input Mask 
Posted: 17 Feb 11 9:34 AM
|
Hello, my app requires the user to input a retail price after a UPC barcode has been scanned, example 1.99 or .99 in a field. In an effort to speed up the data collection is there away for me to input the decimal point so the user needs to only type 199 and the result stored would be 1.99 or if they entered 99 the stored/displayed value is .99...
Thanks for your help..Scott |
|
|
Bev Connor
Posts: 117
|
 |
|
Re: Input Mask 
Posted: 17 Feb 11 5:16 PM
|
To add a decimal to an entered value:
Open the properties window for your program's price entry element; click on the Action tab. In the Action tab's view, just to the right of the "After Enter Pressed" is a small Fn button - click this Fn button to open a script window.
In the script window, divide the value of your program's price entry element by 100, and set the returned value of the Format function back to the price element:
$PromptName.tbPrice$ = $PromptName.tbPrice$/100 1
NOTE: when entering into the After Enter Pressed's Fn script window, note the text in the grey area along the bottom of that window in your program (just above the ok button). This particular script window requires a navigation notation, such as the "1" as shown in the line below the script above.
|
|
|
|
|