Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
strings [2019/06/27 07:45] – neils | strings [2019/09/09 07:47] – [Using buffers] neils | ||
---|---|---|---|
Line 47: | Line 47: | ||
a$ = "hello world" | a$ = "hello world" | ||
b$ = a$ | b$ = a$ | ||
- | rem -- replace the first character with an ' | + | rem -- replace the first character with an ' |
- | poke a$, 65 | + | poke a$, ' |
print b$ | print b$ | ||
rem -- the above will print "aello world" | rem -- the above will print "aello world" | ||
Line 84: | Line 84: | ||
print a$ | print a$ | ||
| | ||
- | In the example above, '' | + | In the example above, '' |
To define a 40 characters long string and initialize it to empty (zero length), you can write the following code: | To define a 40 characters long string and initialize it to empty (zero length), you can write the following code: |