Alberto Iglesias Well-Known Member Licensed User Longtime User Feb 16, 2019 #1 In the process to share my code between this platforms, I have to know what's the best practice to create some method on a function on Code Module or b4xLib to use httpJob or other process to download, like this Code: Copy Dim j As HttpJob j.Initialize("", Me) j.Download("https://www.google.com") Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) End If j.Release in Code Module we can't use "me" to receive the response, I'm thinking in use b4xlib, or have another best practice to create this??? thank you
In the process to share my code between this platforms, I have to know what's the best practice to create some method on a function on Code Module or b4xLib to use httpJob or other process to download, like this Code: Copy Dim j As HttpJob j.Initialize("", Me) j.Download("https://www.google.com") Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) End If j.Release in Code Module we can't use "me" to receive the response, I'm thinking in use b4xlib, or have another best practice to create this??? thank you
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2019 #2 A class, shared between the two projects. Upvote 0