Skip to main content

Strings

Commands for use with String variables.

CHR$

  • Arguments: INTEGER
  • Minimum arguments: 1
  • Return Type: STRING

CHR$ converts a number between 0 and 255 into a character (of STRING type) and is the inverse function of ASC.

STR$

  • Arguments: SINGLE, INTEGER
  • Minimum arguments: 1
  • Return Type: STRING

Convert a Number (INTEGER, LONG, SINGLE, DOUBLE) to a String, transcribed using decimal system. If NUMBER_OF_DIGITS is provided, the String will be left-padded with 0 characters.

NUMBER_TO_CONVERT [, NUMBER_OF_DIGITS]