Code: Select all
SSpin1=1:S5=S5+SSpin1:Y1=SSpin1:S6=SSpin1:S7=S7+SSpin1:beep:print Y1,C1:sleep:FOR X2=1 TO Y1:YAxis2(X2)=C1:NEXT X2:beep:beep:beep
I defined YAxis() array as
Code: Select all
DIM SHARED AS LONGINT YAxis2(1 TO E3+LB1)
My program uses lots a variables and some of them are LONGINT defined. I got rid of one of the LONGINT variables to free up memory usage but still no good fortune. Is this the problem I'm running out of memory and the program can't assign YAxis2(X2)=C1? How can I tell and debug this?
EDIT UPDATE: The piece of code works with DIM SHARED AS LONGINT YAxis2(20) but I need the full array size of YAxis2(1 TO E3+LB1)! Edit Update I tried
Code: Select all
DIM SHARED AS LONGINT YAxis2(221)