Cableguy Expert Licensed User Longtime User Feb 18, 2015 #1 Hi guys I want to have a Phone EditBox on one of my layouts with the particular propertie of being able to check if the Phone Number is in a correct format... Upon Saving this info, this Phone Number will be shown in a label... how can I check the number format in the TextBox and how can I execute a "call this number" when the user clicks the label??
Hi guys I want to have a Phone EditBox on one of my layouts with the particular propertie of being able to check if the Phone Number is in a correct format... Upon Saving this info, this Phone Number will be shown in a label... how can I check the number format in the TextBox and how can I execute a "call this number" when the user clicks the label??
DonManfred Expert Licensed User Longtime User Feb 18, 2015 #2 Code: Copy Dim p As PhoneCalls StartActivity(p.Call("1234567890")) Upvote 0
Cableguy Expert Licensed User Longtime User Feb 18, 2015 #3 DonManfred said: Code: Copy Dim p As PhoneCalls StartActivity(p.Call("1234567890")) Click to expand... Thanks Don, That makes it one less problem, any suggestion for the custom number format? Upvote 0
DonManfred said: Code: Copy Dim p As PhoneCalls StartActivity(p.Call("1234567890")) Click to expand... Thanks Don, That makes it one less problem, any suggestion for the custom number format?
RandomCoder Well-Known Member Licensed User Longtime User Feb 18, 2015 #4 I think RegEx well be your friend here. You'll need to decide what number format(s) you want to allow. Check out this link... http://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation Upvote 0
I think RegEx well be your friend here. You'll need to decide what number format(s) you want to allow. Check out this link... http://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation
DonManfred Expert Licensed User Longtime User Feb 18, 2015 #5 you can use the masked-edit-text to force the user to give the right syntax Upvote 0
Cableguy Expert Licensed User Longtime User Feb 18, 2015 #6 Thanks again Don... I'll look info it Upvote 0
DonManfred Expert Licensed User Longtime User Feb 18, 2015 #7 https://www.b4x.com/android/forum/threads/lib-masked-edittext.30712/ Upvote 0