Thread:TwinArmageddonz/@comment-14329490-20140530211412/@comment-5106053-20140530225443

Well you will have to determine the allocation unit size of each variable, 3 bytes(pixels) will be large enough for any size numeric variable in PTC, 2 bytes could only hold numbers up to 65535. So here it is for 3:  DIM N(16384) 'This is the number of variables you can store when using an allocation unit size of 3 FOR I=0TO 16383 N(I)=GSPOIT(I*3%256,FLOOR(I*3/256))+GSPOIT((I*3+1)%256,FLOOR((I*3+1)/256))+GSPOIT((I*3+2)%256,FLOOR((I*3+2)/256)) NEXT