I have a problem with my code when i update to B4A v2.00. I use HttpUtils and in my Main program have this code for ProgressStatus
In HttpUtils there is this command too in
when i complile give this error
Compiling code. Error
Error parsing program.
Error description: Ya se agregó un elemento con la misma clave.
Occurred on line: 14
Type ProgressStatus(Downloaded As Long,Total As Long)
the error is in HttpUtils, someone has any solution for this error?
Thanks.
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim hc As HttpClient
Dim req As HttpRequest
Type ProgressStatus(Downloaded As Long, Total As Long)
End Sub
Sub ProgressHTTP(tmp As ProgressStatus)
'Label7.Text = tmp.Downloaded & " / " & tmp.Total
ProgressBar1.progress = Round((tmp.Downloaded * 100)/tmp.Total)
End Sub
In HttpUtils there is this command too in
B4X:
'Version 1.04
Sub Process_Globals
Dim Tasks As List 'List of URLs to fetch.
'A map that holds the successful links.
'The links are stored as keys. The values are not used.
Dim SuccessfulUrls As Map
Dim Working As Boolean 'True when a job is still running
Dim Complete As Boolean 'True after a job has completer
Dim Job As String 'Name of the current running Job
Dim CallbackActivity As String 'Name of Activity that handles the callbacks.
Dim CallbackJobDoneSub As String 'Name of the JobDone callback sub.
Dim CallbackUrlDoneSub As String 'Name of the UrlDone callback sub.
Dim CallbackProgressSub As String 'download progress of file
Type ProgressStatus(Downloaded As Long,Total As Long)
End Sub
when i complile give this error
Compiling code. Error
Error parsing program.
Error description: Ya se agregó un elemento con la misma clave.
Occurred on line: 14
Type ProgressStatus(Downloaded As Long,Total As Long)
the error is in HttpUtils, someone has any solution for this error?
Thanks.