
PT-Basic Programming Manual Ver. 1.00 25/143
To retrieve a given number of characters from the right side
of the target string.
Str$ = "ABCDEFGHIJK"
PRINT RIGHT$(Str$,3)
PRINT RIGHT$("168IbB",3)
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.
To return a copy of a string with leading blank spaces
stripped away.
PRINT TRIM_LEFT$(" Happy TEST END")
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.
To return a copy of a string with trailing blank spaces
stripped away.
PRINT TRIM_RIGHT$("Happy TEST END ")
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.
To return the decimal value for the ASCII code for the first
character of a given string.
A% is an integer variable to be assigned to the result.
Str$ is a string variable, consisting of characters.
Kommentare zu diesen Handbüchern