httpjob in class module

cstangor

Member
Licensed User
Longtime User
So I call a httpjob in a class and then when it finishes it calls the main activity layout. But it doesn't activate properly.

Please see the attached job.

I suppose I can move all of my jobs to the main module, but perhaps I am doing something wrong?


Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I put a breakpoint in Sub JobDone and it is called as expected.

It is better to call a sub in the main activity and load the layout from there. Though you are loading the same layout again which will only cause problems.

You haven't checked the Success flag of the completed Job. You will see that it is false as the URL doesn't start with http.
 
Upvote 0
Top