-->
Page 1 of 1

ASC and CHR$ functions

PostPosted: Sun Nov 01, 2015 2:39 pm
by matherp
Hi

Please could you consider adding the normal Basic ASC and CHR($) functions to the interpreter.
ASC returns the ascii value of the first character in a string
CHR returns a single character string that represents the ascii character interpretation of the number in the brackets

mystr = "01"
print asc(mystr) ' outputs 48
mystr = chr(48)
print mystr ' outputs 0

thanks

Re: ASC and CHR$ functions

PostPosted: Sun Nov 01, 2015 7:50 pm
by Mmiscool
Functions added. Grab the latest version.

asc() and chr() have been added.


Have fun.