![](/images/new-backgrounds/1168304/168304163x1.webp)
70 |
| Delta User’s Manual |
10 | LPRINTCHR$(27)"+"; | ' STARTDEFINITION |
| OF MACRO |
|
20 | LPRINT CHR$(18); | ' PICA |
30LPRINTCHR$(27)"W" CHR$(g);' EXPANDEDOFF
40LPRINTCHR$(27)"F"; ' EMPHASIZEDOFF
50 LPRINT CHR$(27)"H"; '
60LPRINT
70 | LPRINTCHR$(27)"T" | ' SUPER & SUBSCRIPTS |
| OFF | ' REGULARPRINT |
80 | LPRINT CHR$(27)“5”; | |
90 LPRINTCHR$(30); | ' END MACRO | |
| DEFINITION |
|
As the comments in the program listing show this will define a macro that will reset all the print style functions. Delta will remember this macro until the power is turned off or until a new macro is defined. A macro can hold up to 16 bytes (characters) of information, The one that we defined contains fifteen.
Now that you have defined a macro, let’s see how to use it. This program will print one line using several printing style fea- tures. Then it “calls” the macro in line 50. When line 60 prints the style is “plain vanilla” because the macro has reset it.
-
-
10 LPRINT CHR$(27)“4”;' ITALIC
20 LPRINTCHR$(27)"G"; ' DOUBLE-STRIKE
30LPRINTCHR$(27)"W" CHR$(l);' EXPANDED
40LPRINT "TESTINGONE, TWO, THREE"
50 LPRINTCHR$(27)"!"; ' USE THE MACRO
60 LPRINT "TESTINGFOUR, FIVE, SIX" | .- |
|
-
-
TESTINc3 | ONE | . | TWO | .r 7HlcaEE | - |
TESTING | FOUH. FIVE, | SIX |
|
|
|
In this chapter we have learned many different commands that have many different uses. In the next chapter we will make up
for this