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

Yes you can store a variable in a GRP by converting to a string, since 1 character in a string is 8 bits(1 byte), and 1 pixel in a GRP is also 8 bits(1 byte), it works out perfectly. So here's an example on storing a large number in a string:  N=RND(524287)+1 'Generate a random variable to store S$="" J=FLOOR(LOG(N)/LOG(2))+1 'Calculate number of bits needed FOR I=0TO J S$=S$+CHR$(N AND 255) 'Store 8 bits N=FLOOR(N/256) 'Remove 8 bits that are already stored NEXT Now to store the string in the GRP:  FOR I=0TO LEN(S$)-1 GPSET I%256,FLOOR(I/256),ASC(MID$(S$,I,1)) NEXT