M Makumbi Well-Known Member Licensed User Longtime User Nov 28, 2018 #1 Please help iam failing to concatenate this this is my original URL Code: http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId=702822227&customerId2=077402193&code=256&code2=257 Code: Dim j As HttpJob j.Initialize("", Me) j.Download("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId= " & Oldn.Text & customerId2= " & Newnumber.Text & code= " &Codeolda.Text &code2= & Codenewn.Text ) Msgbox("Records Uploaded Successfully ", "SMIS")
Please help iam failing to concatenate this this is my original URL Code: http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId=702822227&customerId2=077402193&code=256&code2=257 Code: Dim j As HttpJob j.Initialize("", Me) j.Download("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId= " & Oldn.Text & customerId2= " & Newnumber.Text & code= " &Codeolda.Text &code2= & Codenewn.Text ) Msgbox("Records Uploaded Successfully ", "SMIS")
BillMeyer Well-Known Member Licensed User Longtime User Nov 28, 2018 #2 Parameter names are regarded as strings (text) - always enclose them in quotes. Code: j.Download("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId= " & Oldn.Text & "customerId2= " & Newnumber.Text & "code= " &Codeolda.Text &"code2=" & Codenewn.Text ) Upvote 0
Parameter names are regarded as strings (text) - always enclose them in quotes. Code: j.Download("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId= " & Oldn.Text & "customerId2= " & Newnumber.Text & "code= " &Codeolda.Text &"code2=" & Codenewn.Text )
klaus Expert Licensed User Longtime User Nov 28, 2018 #3 Try this one: Code: Dim j As HttpJob j.Initialize("", Me) j.Download("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId=" & Oldn.Text & "&customerId2=" & Newnumber.Text & "&code=" & Codeolda.Text & "&code2=" & Codenewn.Text) Msgbox("Records Uploaded Successfully ", "SMIS") Upvote 0
Try this one: Code: Dim j As HttpJob j.Initialize("", Me) j.Download("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId=" & Oldn.Text & "&customerId2=" & Newnumber.Text & "&code=" & Codeolda.Text & "&code2=" & Codenewn.Text) Msgbox("Records Uploaded Successfully ", "SMIS")
stevel05 Expert Licensed User Longtime User Nov 28, 2018 #4 It can be easier to see if you use smart strings: Code: j.Download($"http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId=${Oldn.Text}&customerId2=${Newnumber.Text}&code=${Codeolda.Text}&code2=${Codenewn.Text}"$ ) Upvote 0
It can be easier to see if you use smart strings: Code: j.Download($"http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx?customerId=${Oldn.Text}&customerId2=${Newnumber.Text}&code=${Codeolda.Text}&code2=${Codenewn.Text}"$ )
DonManfred Expert Licensed User Longtime User Nov 28, 2018 #6 use parametriced Job. You don´t need to take care about the format. Code: Dim j As HttpJob j.Initialize("", Me) j.Download2("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx", Array As String("customerId",Oldn.Text,"customerId2", Newnumber.Text,"code", Codeolda.Text,"code2", Codenewn.Text)) Upvote 0
use parametriced Job. You don´t need to take care about the format. Code: Dim j As HttpJob j.Initialize("", Me) j.Download2("http://192.168.1.239/Generic_Handler_JSON/HandlerVBPhonechange.ashx", Array As String("customerId",Oldn.Text,"customerId2", Newnumber.Text,"code", Codeolda.Text,"code2", Codenewn.Text))