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.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
strings [2019/06/27 07:42] neilsstrings [2019/08/02 21:58] – [Value assigment] neils
Line 47: Line 47:
   a$ = "hello world"   a$ = "hello world"
   b$ = a$   b$ = a$
-  rem -- replace the first character with an 'a' (petscii code: 65) +  rem -- replace the first character with an 'a' 
-  poke a$, 65+  poke a$, 'a'
   print b$   print b$
   rem -- the above will print "aello world"   rem -- the above will print "aello world"
Line 93: Line 93:
   rem -- a$ now points to an empty string   rem -- a$ now points to an empty string
  
-~~DISCUSSION~~+