Bharath Pabba
Bharath Pabba

Reputation: 1855

How to clear the spaces in phone number in app inventor 2

I am developing a app in app inventor 2. When i retrieve a phone number(for eg.+************) from the contact's list by using the phone number picker and setting that phonenumber to a label it appears like (+** ***** *****). I need to clear all the spaces and the phone number should look like(+************). I am not able to do it by using the trim function in text section of app inventor 2. Can any one please suggest me how to clear all the spaces in the phone number?

Upvotes: 0

Views: 1037

Answers (1)

Bryan Herbst
Bryan Herbst

Reputation: 67229

You can use replace all to replace all instances of " " (the space character) with "" (nothing).

Upvotes: 1

Related Questions