Name
UnleftStr -- remove rightmost characters from a string
Synopsis
var$ = UnleftStr(string$, len[, encoding])
Function
Removes len rightmost characters from string$ and returns the new string.

The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.

Inputs
string$
string to remove characters from
len
number of characters to remove
encoding
optional: character encoding to use (defaults to default string encoding) (V7.0)
Results
var$
resulting string
Example
test$ = UnleftStr("Hello World!", 7)
Print(test$)
This will print "Hello".

Show TOC