scripting@wanadoo.nl




Right()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
3 March 2002 Right()
AuthorJan Kvalbein
Action Returns a String containing a specified number of characters from the right side of a string.
SyntaxRight (strText, intPos) 
Parameters
  • $strText (Required / String) String expression from which the rightmost characters are returned.
  • $intPos (Required / Numeric) Numeric expression indicating how many characters to return. 
  • RemarksExtended use of SUBSTR 
    ReturnsReturns a String containing a specified number of characters from the right side of a string. 
    DependenciesNone. 
    Examples
    $LastName = Right("Bill Gates",5)
    
     
    Source
    FUNCTION Right ($strtext, $intpos)
      IF (Len($strtext) >= $intpos)
        $startpos = Len($strtext) - $intpos
        $right = Substr($strtext, $startpos, $intpos)
      ELSE
        $right = "RIGHT() ERROR: String is to short"
      ENDIF
    ENDFUNCTION ; - Right -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter