Hi,
i want to create an inpumask for german phone numbers. In germany the numbers are very different in the length of the area code for example. Here some examples:
+49 (40) 123456789 for Hamburg
+49 (5151) 9876 for Hameln, the city of the pied piper ;-)
My InputMask is +nn (nnnnn) nnnnnnnnnn, but my value for Hamburg is then +49 (40123) 456789. With '9' or '#' it also doesn't work.
Whats the right way for this?
Thanks Stephan
Hello,
I will be happy to assist you with this matter.
I am not 100% sure if I understand your question. Specifically "With '9’ or '#' it also doesn't work. "
You should be able to use the following code to create a custom mask that will work with the German phone numbers:
this.ultraMaskedEdit1.InputMask = "nn (nn) nnnnnnnnn";
this.ultraMaskedEdit2.inputMask = "nn (nnnnn) nnnnnn";
Also, you have the option to use more than one mask in your program. For example, you can integrate radio buttons or check boxes that ask the user how many digits are in their area code. Depending on their answer, the correct UltraMaskedEdit control will become visible to the user for use.
Please let me know if you have further questions in this matter.