Sub Button1_Click
Public ID As Int
ID = Rnd(1 ,4000)
Public vehicle As String
Dim InsertLocation As HttpJob
InsertLocation.Initialize("InsertNewP", Me)
InsertLocation.download2("http://www.**************.com/tracking/location_add.php", Array As String ("action", "InsertLocation","ID",ID, "Vehicle", vehicle, "Time", DateTime.Time(DateTime.Now),"Date",DateTime.Date(DateTime.Now),"Lat","lat_dene","Long","lblLon.Text"))
End Sub
Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success Then
Dim res As String
res = Job.GetString
Log("Back from Job:" & Job.JobName )
Log("Response from server: " & res)
Dim parser As JSONParser
parser.Initialize(res)
Select Job.JobName
Case "InsertNewP"
'Do nothing
Msgbox("Location Sav3d","Loc Sav3d")
End Select
Else
ToastMessageShow("ERROR: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub