my first program :
when compiling I have this message
error description : undeclared variable httputils is used
before it was assigned any value
error line 39
(library http id loaded)
the program :
'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 b4a As String
b4a = "http://www.faurejr3.com"
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
HttpUtils.CallbackActivity= "main" ' line 39
HttpUtils.CallbackJobDoneSub ="JobDone"
HttpUtils.download("job1",b4a)
Log("hello")
Msgbox ("hello"+ b4a,"first")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub JobDone(Job As String)
Dim s As String
If HttpUtils.issuccess(b4a) Then
s= HttpUtils.getstring(b4a)
End If
End Sub
when compiling I have this message
error description : undeclared variable httputils is used
before it was assigned any value
error line 39
(library http id loaded)
the program :
'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 b4a As String
b4a = "http://www.faurejr3.com"
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
HttpUtils.CallbackActivity= "main" ' line 39
HttpUtils.CallbackJobDoneSub ="JobDone"
HttpUtils.download("job1",b4a)
Log("hello")
Msgbox ("hello"+ b4a,"first")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub JobDone(Job As String)
Dim s As String
If HttpUtils.issuccess(b4a) Then
s= HttpUtils.getstring(b4a)
End If
End Sub