rleiman Well-Known Member Licensed User Longtime User Dec 6, 2015 #1 Hi Everyone, Is there a function in B4A to delete a string of characters from a string variable or the Text property of a view? Example: If I want to remove the characters "City: " from an edit view and only the remaining characters would be left in the view. B4X: edtCity.Text = StripCharacters ("City: ", edtCity.Text)
Hi Everyone, Is there a function in B4A to delete a string of characters from a string variable or the Text property of a view? Example: If I want to remove the characters "City: " from an edit view and only the remaining characters would be left in the view. B4X: edtCity.Text = StripCharacters ("City: ", edtCity.Text)
M Mahares Expert Licensed User Longtime User Dec 6, 2015 #2 Why don't you do this or is it too simplistic: B4X: edtCity.Text = edtCity.Text.Replace("City: ","") Upvote 0
rleiman Well-Known Member Licensed User Longtime User Dec 6, 2015 #3 Hi Mahares, Thanks. Just what I needed. Glad B4A can do it. Upvote 0