B Baris Karadeniz Active Member Licensed User May 17, 2016 #1 I use webview in my app. But end of the url is variable. I put + between them but it didn't work. What should I do? B4X: Sub BtnMessage_Click NavControl.ShowPage(Page5) Dim Url As String Url = "http://www.xxx.com/yyy" + TextFieldUser.Text WebView5.LoadUrl(Url) End Sub
I use webview in my app. But end of the url is variable. I put + between them but it didn't work. What should I do? B4X: Sub BtnMessage_Click NavControl.ShowPage(Page5) Dim Url As String Url = "http://www.xxx.com/yyy" + TextFieldUser.Text WebView5.LoadUrl(Url) End Sub
Erel B4X founder Staff member Licensed User Longtime User May 18, 2016 #2 The concatenating operator in B4X is &: B4X: Dim s As String = "abc" & x Another option is to use the smart strings literal: B4X: Url = $"http://www.xxx.com/yyy${TextFieldUser.Text}"$ Upvote 0
The concatenating operator in B4X is &: B4X: Dim s As String = "abc" & x Another option is to use the smart strings literal: B4X: Url = $"http://www.xxx.com/yyy${TextFieldUser.Text}"$