Hello people,
I have the following code that uses a B4XTable to 'load' NUMERIC values in some columns:
This code shows on screen a data entry dialog and the 'Full keyboard' ... so if you enter 'letters' it produces an error when recording the information as it expects them to be numbers.
Query:
1) How can I activate ONLY the numeric keypad?
2) or how you can 'control that Result is ONLY a numerical value and otherwise ... put ZERO or ask again
Regards,
Sergio
I have the following code that uses a B4XTable to 'load' NUMERIC values in some columns:
B4X:
'Proceso la carga...
If column.Id = "Energía" Or column.Id = "Agua" Then
InputTemplate.Text = value
InputTemplate.lblTitle.Text = column.Id
Wait For (Dialog.ShowTemplate(InputTemplate, "Aceptar", "", "Cancelar")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
This code shows on screen a data entry dialog and the 'Full keyboard' ... so if you enter 'letters' it produces an error when recording the information as it expects them to be numbers.
Query:
1) How can I activate ONLY the numeric keypad?
2) or how you can 'control that Result is ONLY a numerical value and otherwise ... put ZERO or ask again
Regards,
Sergio