Argox PA-20 Basic Programming Manual Manual do Utilizador Página 25

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 143
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 24
PT-Basic Programming Manual Ver. 1.00 24/143
LEFT$
Purpose
To retrieve a given number of characters from the left side of
the target string.
Syntax
A$ = LEFT$(Str$, N%)
Example
Str$ = "ABCDEFGHIJK"
PRINT LEFT$(Str$,3)
PRINT LEFT$("168IbB",3)
Description
A$ is a string variable to be assigned to the result.
Str$ may be a string variable, string expression, or string
constant.
N% is a numeric expression.
If N% is larger than the length of Str$,the Str$ is returned.
If N% is zero, the null string is returned.
MID$
Purpose
To retrieve a given number of characters from anywhere of
the target string.
Syntax
A$ = MID$( Str$, N%[, M%])
Example
Str$ = "ABCDEFGHIJK"
PRINT MID$(Str$,5,3)
PRINT MID$("123& #168IbB",6,5)
Description
A$ is a string variable to be assigned to the result.
Str$ may be a string variable, string expression, or string
constant.
N% and M% are numeric expression.
This command returns a string of length M% characters from
Str$ beginning with the N%th character.
If M% is equal to zero, or if N% is greater than the length of
Str$, then it returns a null string.
Vista de página 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 142 143

Comentários a estes Manuais

Sem comentários