Argox PA-20 Basic Programming Manual Manual de usuario Pagina 25

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 143
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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 pagina 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 142 143

Comentarios a estos manuales

Sin comentarios