LeftStr

From MultiCharts
Jump to: navigation, search

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.