Sub Activity_Create(FirstTime As Boolean)
Dim i As Int
Dim s, sTest As String
' The following will throw an exeption as the
' sTest string is zero based (0|1|2|3) and we
' try to get a char (pos=4) further than it is.
Try
sTest = "TEST"
For i = 0 To sTest.Length ' Should be: sTest.Length-1
s = s & sTest.CharAt(i)
Next
Catch
ToastMessageShow("Woops... something went wrong!",False)
End Try
Activity.Finish
End Sub