User Tools

Site Tools


en:left

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:left [2016/01/01 22:41]
127.0.0.1 external edit
en:left [2020/02/28 10:46] (current)
Line 1: Line 1:
 ===== Left (Function) ===== ===== Left (Function) =====
 ==== Format ==== ==== Format ====
-left( //string_expr////length//)+**left**[[stringexpressions|string_expression]][[integerexpressions|length_expression]])
  
-returns //string_value//+returns [[stringexpressions|string_expression]]
  
 ==== Description ==== ==== Description ====
-Returns a portion of the specified //string_expr//, starting from the first character on the left and continuing for //length// characters. +If length is greater than or equal to zero, returns a portion of the specified [[stringexpressions|string_expression]], starting from the first character on the left and continuing for [[integerexpressions|length_expression]] characters. If length is less than zero then remove [[integerexpressions|length_expression]] characters from the left of the string. 
-==== See Also ==== +
-[[mid|Mid]][[right|Right]]+
 ==== Example ==== ==== Example ====
 <code> <code>
 print left("Hello", 2) print left("Hello", 2)
 +print left("Hello", -2)
 </code> </code>
 will display will display
 <code> <code>
 He He
 +llo
 </code> </code>
  
Line 23: Line 24:
 ==== History ====  ==== History ==== 
 |0.9.5b|New To Version| |0.9.5b|New To Version|
 +|1.99.99.53|Added length < 0|
  
en/left.1451713287.txt.gz · Last modified: 2020/02/28 10:46 (external edit)