I noticed some users do this eg:
Sub GetMaxValue(arrInt() As Int) As Int
If arrInt.Length = 1 Then Return arrInt(0)
Private i As Int 'not sure what the point/benefit is of declaring this with Private
Dim iResult As Int
iResult = arrInt(0)
For i = 1 To arrInt.Length - 1...
If I understand correctly, variables in Process_Globals and Globals should be declared with either Public or Private. However, if I was to declare a variable in a regular sub, should I use those modifiers or should I be using Dim? Is there an actual difference or is it just a personal...
I have noticed this happens occasionally and maybe I should have asked the question earlier. This example applies to B4i but I have also noticed it happening in B4A.
Dim ThisPosition As LatLng 'Before the loop
Do While Locations.NextRow...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.