Argox PA-20 Basic Programming Manual User Manual Page 26

  • Download
  • Add to my manuals
  • Print
  • Page
    / 143
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 25
PT-Basic Programming Manual Ver. 1.00 25/143
RIGHT$
Purpose
To retrieve a given number of characters from the right side
of the target string.
Syntax
A$ = RIGHT$(Str$, N%)
Example
Str$ = "ABCDEFGHIJK"
PRINT RIGHT$(Str$,3)
PRINT RIGHT$("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 entire sring is
returned.
If N% is zero, the null string is return.
TRIM_LEFT$
Purpose
To return a copy of a string with leading blank spaces
stripped away.
Syntax
A$ = TRIM_LEFT$(Str$)
Example
PRINT TRIM_LEFT$(" Happy TEST END")
Description
A$ is a string variable to be assigned to the result.
Str$ is a string variable that may contain some space
character at the beginning.
TRIM_RIGHT$
Purpose
To return a copy of a string with trailing blank spaces
stripped away.
Syntax
A$ = TRIM_RIGHT$(Str$)
Example
PRINT TRIM_RIGHT$("Happy TEST END ")
Description
A$ is a string variable to be assigned to the result.
Str$ is a string variable that may contain some space
characters at the end.
ASC
Purpose
To return the decimal value for the ASCII code for the first
character of a given string.
Syntax
A% = ASC(Str$)
Example
A%=ASC("Test...") 'A%=84
Description
A% is an integer variable to be assigned to the result.
Str$ is a string variable, consisting of characters.
Page view 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 142 143

Comments to this Manuals

No comments