Hi,
I am learning Basic 4 Android. I added a new code module and added the code below.There is no compilation error but the variables TMin and TMax are highlighted in red color. If I declare the same in Process_Globals instead of Globals then this does not happen. Why is this so?
Thanks & regards,
Jawahar
'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Tests() As Long
End Sub
Sub Globals
Dim TMin As Long, TMax As Long
End Sub
Sub GetBounds()
Dim i As Long
TMin=Tests(0)
TMax = TMin
For i = 1 To Tests.Length-1
If Tests(i) < TMin Then TMin = Tests(i)
If Tests(i) > TMax Then TMax = Tests(i)
Next
End Sub