LOL! I was definately looking at the wrong place. It is now fixed on my end, neat! Thanks again John! OK here's something I found. It's concerning a misplaced FOREVER statement.
Case TOKEN_UNTIL, TOKEN_FOREVER
GSC_AddError("Keyword is out of place (there are no open "+Chr(34)+"Repeat"+Chr(34)+" statements)")
GSC_NextToken()
Return
... I just added TOKEN_FOREVER in there so it is taken in account.
Now one last obscure thing about this script language that I found:
For i = 2 To current - 1
If (current Mod i) = 0 Then ; Found = False ; Exit
EndIf
Next
........ This works fine, but:
For i = 2 To current - 1
If (current Mod i) = 0 Then Found = False ; Exit
EndIf
Next
......... This doesn't generate any errors and will generate very different results. It seems to be doing the Exit all the time, but maybe I'm mistaken.
Case TOKEN_UNTIL, TOKEN_FOREVER
GSC_AddError("Keyword is out of place (there are no open "+Chr(34)+"Repeat"+Chr(34)+" statements)")
GSC_NextToken()
Return
... I just added TOKEN_FOREVER in there so it is taken in account.
Now one last obscure thing about this script language that I found:
For i = 2 To current - 1
If (current Mod i) = 0 Then ; Found = False ; Exit
EndIf
Next
........ This works fine, but:
For i = 2 To current - 1
If (current Mod i) = 0 Then Found = False ; Exit
EndIf
Next
......... This doesn't generate any errors and will generate very different results. It seems to be doing the Exit all the time, but maybe I'm mistaken.