Android Question how to mask text box like 9999-9999-9999-9999?

Carlven Lao

New Member
Licensed User
Longtime User
Dear all,

I'm new to b4a, how can I format user input in text like 9999-9999-9999-9999?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
I have made a little example for you using this Masked edit text lib. Please see it attached
 

Attachments

  • number-input-test.zip
    6.3 KB · Views: 278
Upvote 0

Carlven Lao

New Member
Licensed User
Longtime User
I have made a little example for you using this Masked edit text lib. Please see it attached
Thank you very much for your post.

I've tried but it cannot input any number.

Update:
After change ET1.Format ="AAAA-AAAA-AAAA-AAAA" to "####-####-####-####" then I can input numbers.

Thanks a lot.
 
Upvote 0
Top