A alvin1929 Member May 21, 2020 #1 I have this code in VB.net (windows) B4X: Imports System.Net Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim request As WebRequest = WebRequest.Create("www.myurl.com/file.php?w=" & notes.Text) request.GetResponse() End Sub I tried it in b4a but there's an error. How can i convert that code to b4a?
I have this code in VB.net (windows) B4X: Imports System.Net Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim request As WebRequest = WebRequest.Create("www.myurl.com/file.php?w=" & notes.Text) request.GetResponse() End Sub I tried it in b4a but there's an error. How can i convert that code to b4a?
Erel B4X founder Staff member Licensed User Longtime User May 21, 2020 #2 [B4X] OkHttpUtils2 with Wait For Downloading resources is simpler with the new Resumable Subs feature. Using Wait For we can wait for the JobDone event in the same sub that started the download. No longer is it needed to have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j.Initialize(""... www.b4x.com Upvote 0
[B4X] OkHttpUtils2 with Wait For Downloading resources is simpler with the new Resumable Subs feature. Using Wait For we can wait for the JobDone event in the same sub that started the download. No longer is it needed to have a single sub that handles all requests results. Simplest example: Dim j As HttpJob j.Initialize(""... www.b4x.com
A alvin1929 Member May 21, 2020 #3 Thanks for the response Erel I already imported that library but I'm still confused on how to write that into b4a. Upvote 0
Thanks for the response Erel I already imported that library but I'm still confused on how to write that into b4a.
A alvin1929 Member May 21, 2020 #4 What i am actually planning is to sendvalues from note.text to my server. It connects via file.php and will create a new .txt file in my server. Upvote 0
What i am actually planning is to sendvalues from note.text to my server. It connects via file.php and will create a new .txt file in my server.
Erel B4X founder Staff member Licensed User Longtime User May 21, 2020 #5 Watch the video tutorial. I recommend you to start here: https://www.b4x.com/learn.html Upvote 0
KMatle Expert Licensed User Longtime User May 21, 2020 #6 Search for php and you'll find tons of examples here... Upvote 0