0
Hello, I’m having a formatting problem in the text box which is as follows I am using the following code to format the text box according to the phone number
If Len(numtel) = 11 Then CaixaTxt.Text = Format(numtel, "(##) ##### ####")
If Len(numtel) = 10 Then CaixaTxt.Text = Format(numtel, "(##) #### ####")
If Len(numtel) = 9 Then CaixaTxt.Text = Format(numtel, "( ) ##### ####")
If Len(numtel) = 8 Then CaixaTxt.Text = Format(numtel, "( ) #### ####")
however the text box instead of being formatted with the number and format, is receiving the text: Ex: Len = 8 the box is "( ) #######" with the space of the quotation marks and # instead of numbers... Someone knows what I’m doing wrong?
I did not understand the negative vote... by voting negative they should explain why, so that those who put the solution understand what is wrong and change what is necessary to help the user to find one that is valid!
– João Martins
Thank you very much! Solved my problem :D As for the negative vote, I also did not understand... The solution worked perfectly Thank you for your time!
– Jaderson
You are welcome! Take advantage and give an UP on the answer :)
– João Martins
I gave, but as I have no more than 15 pts of reputation, only account in the system and does not mark the vote... I do not understand why this, but okay! it was very helpful anyway
– Jaderson