; Chr Example ; ----------- ; Chr$ converts an ASCII code back into a one-character string. ; It is the reverse of Asc. Print "Chr$(65) = "+Chr$(65)+" (65 is the code for A)" Print "" ; Build the letter row for a high-score name-entry screen alphabet$="" For code=65 To 90 alphabet$=alphabet$+Chr$(code) Next Print "Name-entry letters: "+alphabet$ ; Chr$(34) is the double-quote - the only way to put one in a string Print "" Print "The pilot said "+Chr$(34)+"Fire!"+Chr$(34) ; Round trip: Asc undoes Chr$ Print "" Print "Chr$(90) = "+Chr$(90)+" and Asc('Z') = "+Asc("Z") Print "" Print "Press any key to close the example" WaitKey End