by Eduardo Quintana (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(4 Votes)
Numeric textbox with complete control, including number of decimal places, negative number acceptance, number and position of the negative sign and the decimal separator, automatic replacement of the decimal separator according to the users PC international settings.
Inputs
tbX: the textbox control being controlled
KeyAscii: the KeyAscii parameter of the calling textbox (see samples)
bolAllowNegativeValues: allows negative values, defaults to true
intPrecision: number of digits after the decimal separator, defaults to 2
Assumes
Very simple routine that allow flexible control of the keys accepted in the textbox
Code Returns
No return values
Side Effects
The control of the textbox accepted keys
Upload