remote query fails at first attempt

slowtime

Active Member
Licensed User
Longtime User
I always must call twice ExecuteRemoteQuery, because at first attempt ' ResponseSuccess ' returns nothing, at the second attempt it always correctly returns the data stored in sql database.

Am I wrong in my basic 4 android code ?

I'am thinking about a problem in the server (PHP 5 or MYSQL) too.

Can someone help me ? please.

Thank you.

 

slowtime

Active Member
Licensed User
Longtime User
Hi,

this is 1st attempt log ( at the end of all lines two squares ( I think CRLF)).

I don't understand because fields is ZERO because at 2nd attempt it is in the right and all run well.

Thank you.

 
Upvote 0

slowtime

Active Member
Licensed User
Longtime User
Hi Erel,

thank you for help.

hc_ResponseSuccess works right, I used breakpoint.

But, every var (declared in Sub Globals) as webfields, wdb(i).cat etc.. lost its value outside ' hc_ResponseSuccess '

In fact, if I move functions that use global variables (webfields, wdb(i).cat etc.. ) inside ' hc_ResponseSuccess ' everything works perfectly.

Where am I wrong ?

Thank you again.
 
Upvote 0

slowtime

Active Member
Licensed User
Longtime User
Hi,

tank you again.

I'm trying http utils, if I don't solve my problem I'll update source.

Ciao.

ps: I am very happy to use Basic4Android and the forum help is sharp and fast.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…