Liberty BASIC Help Online

RIGHT$( s$, n )
 
RIGHT$(string, number)
 
Description:
This function returns a sequence of characters from the right hand side of the string, string variable, or string expression string using number to determine how many characters to return.  If  number is 0, then "" (an empty string) is returned.  If number is greater than or equal to the number of characters in string, then string will itself be returned.
 
Usage:
 
  print right$("I'm right handed", 12)
 
Produces:
 
  right handed
 
And:
 
  print right$("hello world", 50)
 
Produces:
 
  hello world
 
Note:  See also LEFT$( ) and MID$( )
 


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/