We all have experienced the long time it takes for our TS 1000/1500 computers to handle string input of more than 3-4 lines. The more we add after that the longer it seems to take forr the computer to display the results. There is at least one easy solution to this problem. The method described can be adapted to almost any program that requires a lot of text input, such as game instructions, information, etc that is not a REM statement.
Strings can be combined by using the structure LET A$=A$+”xxxx” where A$ is the last string and xxxx is the additional text or characters of any length, but limiting to 3-4 lines will speed up the process of inputting. Starting at the beginnng, A$ is the first 3-4 lines of a long statement. Then that is combined with the next set of lines, etc. The last character need not be a period as the “+” will continue the line. If a space is required at the new input just include it after the first “. Of course words can be split the same way.
These examples will help to illustrate —
10 LET A$="THIS IS AN EXAMPLE THAT WOULD BE 3-4 LINES LONG"
15 LET A$=A$+". I HAVE ADDED A PERIOD TO FINISH THE LAST LINE AND THE LINES WILL BE CONTINUED FOR 3-4 LINES."
The idea is to continue in this fashion for the total text. Allow extra line numbers between each for possible corrections.
Corrections and changes can be easily done as in these examples
If a period is left off the end of a previous string then use–
12 LET A$=A$+"."
Assume a period was left out 35 spaces from the end of a string-
16 LET A$=A$(1 TO LEN A$-35)+"."+A$(LEN A$-34 TO LEN A$)
It may take some number juggling to get the period located right. Spaces can be opened up the same way.
By using PRINT A$ direct mode at any time to check your work, errors can be detected. Be sure to use RUN any time a change is made to correct memory. Use the same idea to display for counting.
Various kinds of corrections can be made by this system. Users will find it much easier to copy programs, etc when there is a chance to speed up the process and to make corrections. A future Marquee scrolling program that uses this method to input 2 separate messages will be given in a future PLOTTER issue.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.