Sub JobDone(Job As HttpJob)
If Job.Success=False Then
Select Case Job.JobName
Case "httpparam"
If securestrin="" Then
ToastMessageShow(loc.Localize("Server unreachable, try again"),True)
ExitApplication
Return
End If
startsystem
End Select
Else
Select Case Job.JobName
Case "httpparam"
Dim risp As String=Job.GetString
securestrin=risp
If File.ExternalWritable = False Then
CallSub2(Main,"showmsg","Unable to write parameter file")
Return
End If
File.Writestring(File.DirDefaultExternal,"param",risp)
startsystem
End Select
End If
Job.release
End Sub