How does one pull up just the number pad?

fdx12345

Active Member
Licensed User
Longtime User
I am using the dataIn member from the dialog group. I have set it to

dataIn.INPUT_TYPE_DECIMAL_NUMBERS

When I go to get the response with dataIn.Show, the user is presented with the full keyboard. I only want numbers entered so would like the user to be presented with just the keypad. I can do this easily with a textbox but dataIn is not a textbox. Any ideas? I have checked through all of the post.
 

fdx12345

Active Member
Licensed User
Longtime User
I just found the answer

The answer is the following:

B4X:
dataIn.InputType = dataIn.INPUT_TYPE_DECIMAL_NUMBERS

Unless I am missing something, I saw the "dataIn.INPUT_TYPE_DECIMAL_NUMBERS" information in the documentation but I did not see anything that said to make it equal to "dataIn.InputType". B4a will happly accept just dataIn.INPUT_TYPE_DECIMAL_NUMBERS and run with it but will give the expected results.

I happen to get clued in when I was scanning issues on the board with just the keypad.
 
Upvote 0
Top