Who wants More Memory ? Every one.
It's easy. Just shift those stings from your code in to a file.
At run time load them in to a virtual string array. Then when you want to
LOCATE 12,5 : ? "THE QUICK BROW FOX ETC"
DONT
JUST
CALL DS(23)
In the sub DS(x as integer) you grab the string at loction 23
depending on how you write your code this could do the LOCATE 12,5
and print the string.
You can write an application to search through your code, find suitable
stings to squash, copy to the holding file, stick a ' infront of the code
and add the required call DS() call.
To find out how much memory you will save use something like XTGOLD to view
you apps exe file. Towards the end of the exe you will find all the text stuff
grouped together.
I Have implemented the above and have halved this block of code.
It's easy. Just shift those stings from your code in to a file.
At run time load them in to a virtual string array. Then when you want to
LOCATE 12,5 : ? "THE QUICK BROW FOX ETC"
DONT
JUST
CALL DS(23)
In the sub DS(x as integer) you grab the string at loction 23
depending on how you write your code this could do the LOCATE 12,5
and print the string.
You can write an application to search through your code, find suitable
stings to squash, copy to the holding file, stick a ' infront of the code
and add the required call DS() call.
To find out how much memory you will save use something like XTGOLD to view
you apps exe file. Towards the end of the exe you will find all the text stuff
grouped together.
I Have implemented the above and have halved this block of code.
Comment