G gdeppi Member Licensed User Longtime User Feb 24, 2016 #1 It would be really nice to develop a Numeric Input Edit to input of any numeric type (integer, float, number of decimals, formatted or not input), without the need to add as many checks in code. Regards, Giuseppe
It would be really nice to develop a Numeric Input Edit to input of any numeric type (integer, float, number of decimals, formatted or not input), without the need to add as many checks in code. Regards, Giuseppe
eurojam Well-Known Member Licensed User Longtime User Feb 24, 2016 #2 but you can already set the inputtype to numbers or decimals: Code: EditText1.InputType = EditText1.INPUT_TYPE_DECIMAL_NUMBERS
but you can already set the inputtype to numbers or decimals: Code: EditText1.InputType = EditText1.INPUT_TYPE_DECIMAL_NUMBERS
G gdeppi Member Licensed User Longtime User Feb 24, 2016 #3 Ok, but I can't control the decimal separator type, the lenght of decimals and so on ...
M Mahares Expert Licensed User Longtime User Mar 3, 2016 #4 If you do not mind working with the input box, then the Dialogs library offers that. Example: Code: Dim nd As NumberDialog 'number of digits, default, numb of dec., dec. charact., etc. nd.Digits = 5 :nd.Number = 0 :nd.Decimal = 2 :nd.DecimalChar=Chr(44)
If you do not mind working with the input box, then the Dialogs library offers that. Example: Code: Dim nd As NumberDialog 'number of digits, default, numb of dec., dec. charact., etc. nd.Digits = 5 :nd.Number = 0 :nd.Decimal = 2 :nd.DecimalChar=Chr(44)
G gdeppi Member Licensed User Longtime User Mar 3, 2016 #5 Mahares said: If you do not mind working with the input box, then the Dialogs library offers that. Example: Code: Dim nd As NumberDialog 'number of digits, default, numb of dec., dec. charact., etc. nd.Digits = 5 :nd.Number = 0 :nd.Decimal = 2 :nd.DecimalChar=Chr(44) Click to expand... Ok, but I want to input numbers directly on the input box with all options You mentioned here. I have already prepared same routines that control the input and format the numbers entered with all the above options, to be included in Sub _TextChanged and _FocusChanged, but I must repeat for each inputbox I declare. The ideal would be to have a new control, or to extend the inputbox with these routines, but I not know how to do that...
Mahares said: If you do not mind working with the input box, then the Dialogs library offers that. Example: Code: Dim nd As NumberDialog 'number of digits, default, numb of dec., dec. charact., etc. nd.Digits = 5 :nd.Number = 0 :nd.Decimal = 2 :nd.DecimalChar=Chr(44) Click to expand... Ok, but I want to input numbers directly on the input box with all options You mentioned here. I have already prepared same routines that control the input and format the numbers entered with all the above options, to be included in Sub _TextChanged and _FocusChanged, but I must repeat for each inputbox I declare. The ideal would be to have a new control, or to extend the inputbox with these routines, but I not know how to do that...
G gdeppi Member Licensed User Longtime User Jun 26, 2016 #6 Can anyone wrap this GitHub project that can match this tread? Thanks
G gdeppi Member Licensed User Longtime User Jun 26, 2016 #8 Yes, I know it, but Im looking at an specialized numeric input.