+1 888 340 6572

LeftStr: Difference between revisions

From MultiCharts
(Created page with "Returns one or more leftmost characters from the specified string expression. ==== Usage ==== <syntaxhighlight>LeftStr(String,sSize)</syntaxhighlight> Where: String ...")
 
No edit summary
 
Line 1: Line 1:
Returns one or more leftmost characters from the specified string expression.  
Returns one or more leftmost characters from the specified string expression.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>LeftStr(String,sSize)</syntaxhighlight>  
<syntaxhighlight>LeftStr(String, sSize)</syntaxhighlight>  


Where: [[String]]  - a string expression from which the characters are to be taken
Where:  
 
:'''String''' - a string expression from which the characters are to be taken.
              
              
[[sSize]]  - a numerical expression specifying the number of characters to be returned  
:'''sSize''' - a numerical expression specifying the number of characters to be returned.
==== Example ====
<syntaxhighlight>LeftStr("Hello World",5);  will return a string expression "Hello"</syntaxhighlight>
   
   
== Example ==
<syntaxhighlight>LeftStr("Hello World", 5);</syntaxhighlight>
Will return a string expression "Hello".
== Notes ==
* See [[MidStr]] to return a middle part of a string,
* See [[RightStr]] to return the rightmost part of a string,
* See [[InStr]] to get the starting location of a expression in a string.


[[Category:Text Manipulation]]
[[Category:Text Manipulation]]

Latest revision as of 07:38, 9 February 2012

Returns one or more leftmost characters from the specified string expression.

Usage

LeftStr(String, sSize)

Where:

String - a string expression from which the characters are to be taken.
sSize - a numerical expression specifying the number of characters to be returned.

Example

LeftStr("Hello World", 5);

Will return a string expression "Hello".

Notes

  • See MidStr to return a middle part of a string,
  • See RightStr to return the rightmost part of a string,
  • See InStr to get the starting location of a expression in a string.