How would I poke something to a bank other than a number, such as a string, type, array, image, ect?
For images, you must make your own 'raw' format then. Since you have access to imagebuffers you can copy data between banks and images.. you can't access soundbuffers atm, so that's a nono ..
For those other formats, you have to 'code' native variables yourself..
A string, is ofcourse a number of ascii values .. so, if you want to store the word "Blitzbasic" then you need a bank with the size of 10 .. and each byte holds the ascii value of each of those characters.. Naturally.. you can't store more than those 10 then.. there's no bounds-checking on banks. @ win98se orso this might lead to a serious crash! If you want to store a string in a bank, then you prolly have to make your own String2Bank(bank,s$) function, where the function checks the bounds for you.. (and optionally resizes the bank!)
An array of bytes for example, is just the bank with the banksize being the number of elements..
An array of ints (handles are ints!) is a bank with the banksize being the amount of elements / 4 ..
An array of types .. dunno, I'm not the type-type .. question is why you would want to put a type into a bank anyway ..
If you want to work with banks, you definitly want a monitor:
http://www.blitzbasic.co.nz/Community/posts.php?topic=29266