Z-Space Technologies, Inc.
Support Forums
Join | Logon
ITScriptNet Support Forums
 All Threads | New ThreadView:  Search:  
 Author  Thread: Input Mask
swarris
Posts: 3
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
[Reply][Quote]
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.
[Reply][Quote]
 Page 1 of 1 
 
Website (C) 2004-2008 Z-Space Technologies, Inc. All Rights Reserved.
All messages posted here are the sole responsiblity of the poster. Z-Space Technologies, Inc. is not responsible for the content of messages. Messages do not reflect the official positions or policies of Z-Space Technologies, Inc.