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

  • 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 109
Commands - 77
MID$
String Function
SYNTAX: n$ = MID$(m$,p[,q])
PURPOSE: To return the requested part of a given string.
REMARK S: The function returns a string of length q characters from m$ beginning with the pth character. If q is
equal to zero, or p is greater than the length of m$, then MID$ returns a null string.
If q is omitted, then a string from position p to the end of m$ is returned.
RELATED: LEFT$, LEN, RIG HT$, INSTR, MID$ Statement
EXAMPLE: 10 A$ = "ABCDEFG"
20 PRINT MID$(A$,5,2)
RUN
EF
ERROR: < Illegal argument> if p or q is out of range
< Illegal argument> if p = 0
< Data negative> for p or q
Zobrazit stránku 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 207 208

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

Žádné komentáře