scripting@wanadoo.nl




Left()

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 Left()
AuthorJan Kvalbein
Action Returns a String containing a specified number of characters from the left side of a string.
SyntaxLeft ($strText, $intPos) 
Parameters
  • $strText (Required / String) String expression from which the leftmost characters are returned
  • $intPos (Required / Numeric) Numeric expression indicating how many characters to return 
  • RemarksExtended use of SUBSTR 
    ReturnsString containing a specified number of characters from the left side of a string 
    DependenciesNone. 
    Examples
    $FirstName = Left("Bill Gates",4)
    
     
    Source
    FUNCTION Left ($strtext, $intpos)
      IF (Len($strtext) >= $intpos)
        $left = Substr($strtext, 1, $intpos)
      ELSE
        $left = "LEFT() ERROR: String is to short"
      ENDIF
    ENDFUNCTION ; - Left -
     
      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