You have to do it the hard way...OR...
If you're savvy enough, you could define a large array, then split that array up into smaller arrays manually...OR...
If you're really savvy, you could define a string array at a certain ram location, then define a second array at a second ram location, define a third array at a third location, all locations being sequential (not neccessarily one after another, but in a sequence). Then using a little trick, you can access the whole array using the name of the first array. PBP doesn't check for the end of an array (no bounds checking) so if you try to get an index that's larger than one that is actually defined, you can 'run into' the next array.
For instance:
string var byte[16] $100
string2 var byte[16] $110
string3 var byte[16] $120
string4 var byte[16] $130
that'll put string at $100, string2 at $110, string3 at $120, string4 at $130, and so on...
You can get to all 3 strings by:
string[ whatever ]
To get to the 3rd byte of string4, position 51, would be:
string[ 51 ]
Of course this would only work with fixed length strings.
You could easily 'terminate' each individual string with a $00, like VB does, and could easily write a routine to put individual strings together into one main string.
I guess what it really boils down to is...What exactly are you trying to do? You're a bit vague...
Bookmarks