ok my old VB esque skills arent great.. my first draft of this little block had a EXIT for..
this little tid-bit Crashes B4A Hard
whats the problem with this code please
bLocationScanValidated is a global and is false on entry.
Once the work is done the local boolean bFoundMapLoc is set. In the same sub but a different code block I set the global boolean to the same value as this local boolean bFoundMapLoc ..
this little tid-bit Crashes B4A Hard
whats the problem with this code please
B4X:
If bLocationScanValidated = False Then
For d = 0 To mapLocList.size - 1
If bFoundMapLoc = False Then
localMapLocObj = mapLocList.Get(d)
tmpLocationNm = localMapLocObj.locNm.Trim
If tmpLocationNm = m_localScanRetVal Then
m_CurrentLocationID = localMapLocObj.dbId
bFoundMapLoc = True
End If
End If
Next
End If
bLocationScanValidated is a global and is false on entry.
Once the work is done the local boolean bFoundMapLoc is set. In the same sub but a different code block I set the global boolean to the same value as this local boolean bFoundMapLoc ..