Hi
I tried many times/approach to read job.response value and compare it, always failed!
What is the wrong?
I tried many times/approach to read job.response value and compare it, always failed!
Request url that response with 0 or 1 only without any space:
HttpJob.Initialize("job1")
HttpJob.Download("url")
Comparison inside select Not work:
Sub JobDone (Job As JobResult)
If Job.Success Then
If Job.JobName="job1" Then
'always job.response=1 or 0
Select Job.Response
Case "0".GetBytes
Log("0")
Case "1".GetBytes
Log("1")
End Select
End If
End If
End Sub
Comparison inside select Not work:
Sub JobDone (Job As JobResult)
If Job.Success Then
If Job.JobName="job1" Then
'always job.response=1 or 0
Select Job.Response
Case "0"
Log("0")
Case "1"
Log("1")
End Select
End If
End If
End Sub
Comparison inside select Not work:
Sub JobDone (Job As JobResult)
If Job.Success Then
If Job.JobName="job1" Then
'always job.response=1 or 0
Select Job.Response
Case 0
Log("0")
Case 1
Log("1")
End Select
End If
End If
End Sub
What is the wrong?