Hi DonManfred,
Thanks for replying.
Below is my code.
I am assigning value to global variable in JobDone.
Sub btnLogin_Click
Job_GetUser.Initialize("Job_GetUser",Me)
Job_GetUser.Download2(ServerURL,Array As String("Query","Select Cmpycode from AppUsers Where UserID='" & txtID.text & "' and pwd='" & txtPassword.text & "'"))
If gsCmpyCode<>"" Then >>>>>>>>>>>>>>>>>>>>>>>>>break point here
---------------------------------------
Sub Jobdone (Job As HttpJob)
If Job.Success=True Then
Select Job.JobName
Case "Job_GetUser"
Dim parser As JSONParser
Dim response As String
response=Job_GetUser.GetString
If response.Length<10 Then
ToastMessageShow("Error: Incorrect User Name/ Password" & Job.ErrorMessage, True)
End If
parser.Initialize(response)
Dim rows As List
rows=parser.NextArray
Dim m As Map
Dim i As Int
i=0
m=rows.Get(i)
gsCmpyCode=m.Get("Cmpycode")
gsUserID=txtID.text
If I put breakpoint on If gsCmpyCode<>"" Then it gives me value 1 out of 3 times.I have no clue where is the problem.
Pls guide me.
Thanks
Juzer