
Note: You must add uk to the end of the address, it's to help prevent spam. |
ASC() TYPE: Function-Numeric Action: ASC will return a number from 0 to 255 which corresponds to the Commodore ASCII value of the first character in the string. EXAMPLES OF ASC Function:
If there are no characters in the string, an ?ILLEGAL QUANTITY error results. In the third example above, if J$="", the ASC function will not work. The GET and GET# statement read a CHR$(0) as a null string. To eliminate this problem, you should add a CHR$(0) to the end of the string as shown below. EXAMPLE of ASC Function Avoiding ILLEGAL QUANTITY ERROR:
|