or just undocumented feature?
I would expect 2 subscript out of ranges (Error 9) on this code, but with
PB 9.0 I do not get any....
What do you think?

I would expect 2 subscript out of ranges (Error 9) on this code, but with
PB 9.0 I do not get any....
What do you think?
Code:
#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG LOCAL I AS LONG LOCAL Temp$() REDIM Temp$(2) '-----2 NOT 3 -------- Temp$(1)="HELLO" Temp$(2)="PowerBasic" Temp$(3)="Hero" '---Expect Subscript out of range IF ERR THEN ? "Err="+STR$(ERRCLEAR) FOR I=1 TO 3 ? "Temp$("+STR$(i)+")="+Temp$(I) '--- Expect Error 9 on 3rd iteration NEXT IF ERR THEN ? "Err="+STR$(ERRCLEAR) END FUNCTION
Comment