Hello everyone,
I was hoping someone might be able to help me with a problem I'm having. I've tried looking up the correct syntax I need for my situation, but haven't been able to do so.
Basically, I've made a user form in Basic4Android. In this form I have an EditText for date and time. What I'm wondering is how can I format what the user puts into these text boxes? What I'd like to do is use this code
txtdate.InputType = txtdate.INPUT_TYPE_NUMBERS
to only allow the user to use the number keypad when entering in values in the text box, but how would I make the program throw in the /'s so it can be 11/11/11? And the same with the : in time?
Thanks for reading,
Iz
I was hoping someone might be able to help me with a problem I'm having. I've tried looking up the correct syntax I need for my situation, but haven't been able to do so.
Basically, I've made a user form in Basic4Android. In this form I have an EditText for date and time. What I'm wondering is how can I format what the user puts into these text boxes? What I'd like to do is use this code
txtdate.InputType = txtdate.INPUT_TYPE_NUMBERS
to only allow the user to use the number keypad when entering in values in the text box, but how would I make the program throw in the /'s so it can be 11/11/11? And the same with the : in time?
Thanks for reading,
Iz