HTBasic Help
×
Menu
Index

num1 Example

10    CLEAR SCREEN
20    Str$="Hello"
30    PRINT "NUM returns the ASCII value of the "
40    PRINT "first character in a string."
50    PRINT
60    PRINT "For example, the string: ";Str$
70    X=NUM(Str$)
80    PRINT "The value returned was: ";X;"or: ";CHR$(X)
90    END