tufanv Expert Licensed User Longtime User Jul 20, 2016 #1 Hello I want to replace the word a with word b when i click a button for each textfield in the view. How can i do this ? TY
Hello I want to replace the word a with word b when i click a button for each textfield in the view. How can i do this ? TY
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2016 #2 B4X: For Each v As View In Page1.RootPanel.GetAllViewsRecursive If v Is TextField Then Dim tf As TextField = v tf.Text = tf.Text.Replace("a", "b") End If Next Upvote 0
B4X: For Each v As View In Page1.RootPanel.GetAllViewsRecursive If v Is TextField Then Dim tf As TextField = v tf.Text = tf.Text.Replace("a", "b") End If Next