I want the textbox to accept only numeric input

Hi
Sorry my English is weak, I did not mean by & as a character in the keyboard. This is the GBorad I am using:

Try this, uses a label instead of a textbox, and returns the value to a variable on Enter

image

makeAKeyBoardNumbersOnly.aia (20.7 KB)

1 Like

May I ask what happens the next time you press button ? Example text is 5, press button result is 6, next time text input is 6 then result is 7 or 6+6+1=13 ?

Hi
The result would be 7.

Thanks for the nice keyboard.

You could always use regex extension by @Kevinkun to validate numbers for example only integers or even only positives numbers.
For example this will accept only positive integer numbers in calculations otherwise it will return 0 in textbox

2 Likes

Please post a screenshot of the "application failure".

isNumber always returs the correct booleans:

1 Like

Hi
This is the failure message:

Show the blocks (like I did).

Hi

This is the result if I add the - character with out any number with it:

and this if I add numbers:

image

Try this and see if it works for you
numbers_only.aia (7.8 KB)

Great keyboard and easy to build but only positive numbers out

Same keyboard I get .. the space bar is disabled and "-" can easily be filtered out as I already gave blocks for

So where is the problem?

1 Like

Easy enough to add a - key, but not in the original OP's request....

1 Like

Agreed but maybe I misread? I thought he was ONLY concerned with "-" in the case where ONLY "-" was entered as the only character .. appeared to me -1 etc was ok

I like the keyboard and built one very similar to lookup telephone prefixes a couple months ago

Looks like something I could use. Wish I could read ummmm Korean?

No need to know korean, you can always translate page to english :slight_smile:

Also have a look at

2 Likes

Thanks MUCH. Mucho Gracias! Yes I am familiar with RegEX algorthims and have used such techniques in years past in other languages. So fast and so easy for handling large lists.

@dora_paz where is the translate button?