How much text can I squeeze in to a slot in an array? (With "slot" I mean for example the space at X1/Y1.)
And how much text can an array hold total?
Is it limited to computer memory only?
How much text can I squeeze in to a slot in an array? (With "slot" I mean for example the space at X1/Y1.)
And how much text can an array hold total?
Is it limited to computer memory only?









I believe each slot can hold 256 characters of text. The thing you should worry about is that of speed relaoding the array. Someone might grow old and pass away waiting for the information is loaded.
Might be better if you split the info into smaller arrays.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm
I've never really been good at coding, but I think it doesn't matter what size it is, unless you're speaking about astronomical amounts of text. The array would go up in size as normally as if you were to enter the same number of characters into different slots. I might be lying, nonetheless.
Edit--I stand corrected. I left this page open and didn't refresh it to see any replies before mine![]()
Thanks guys.
If a "slot" can hold 256 characters it'll not be enough. It is for storing info about herbs and their historical and medical use (a hobby project). The overall size of the array will not be that big though.
I'll set it up in another "environment". No problem.


Just use one of the other array objects.


If what you want to do is store large documents in an X/Y array to load text from, what you might want to do is store the information externally in some format from the array, and use the array to keep a pointer to the proper document to load. For example, the information could be stored in paragraphs of string objects, or in external .txt files, or so on, and the value in the array merely tells the project which one to load.
Use Ini instead.
"If a "slot" can hold 256 characters it'll not be enough."
IIRC this is only the limit in MMF1.2. MMF1.5 and onwards use null terminated strings.
I made a quick test:
http://www.abload.de/image.php?img=arrayjnv1.jpg
Edit I stopped the test at 76000 characters ...
I would do this by putting all information in an array with whatever header you want for each group. I would use the array simply as a pointer to each group in the ini file.
This way you can easily modify the ini file and add data as you need to and the only update to the array is for the pointer text which once set shouldnt need to be changed.