Remote-processing CAMBASIC Uživatelský manuál Strana 48

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 47
Commands - 15
CHR$
String Function
SYNTAX: n$ = CHR$(m)
n$ = CHR$(m,n)
PURPOSE: To convert an ASCII cod e to its character equivalent. Also, to return a string of like char acters.
REMARK S: The CHR$ function returns the one– character string with ASCII code m. CHR$ is commonly used
to send a special character to the screen or printer.
The second syntax will generate a string of n characters all with the character m. This is useful for
printing graphics. It can be used to simulate SPACE$ and STRING$ in other BASICS.
CHR$(65, 10) is equal to STRING$(10,65)
CHR$(32, 14) is equal to SPACE$(14)
RELATED: ASC, STR$, VAL
EXAMPLE: PRINT CHR$(65)
A
PRINT CHR$(36,10)
$$$$$$$$$$
ERROR: < Data negative> for m,n
< Data> 255> for m,n
< Out of string space> if n> available string space
Zobrazit stránku 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 207 208

Komentáře k této Příručce

Žádné komentáře