User Tools

Site Tools


en:mid

Differences

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

Link to this comparison view

Next revision
Previous revision
en:mid [2016/01/01 22:41]
127.0.0.1 external edit
en:mid [2020/02/28 10:46] (current)
Line 1: Line 1:
 ===== Mid (Function) ===== ===== Mid (Function) =====
 ==== Format ==== ==== Format ====
-**mid**( //string_expr////start_expr////length_expr//)+**mid**( [[stringexpressions|string_expression]][[integerexpressions|start_expression]][[integerexpressions|length_expression]])
  
-returns //string_value//+returns [[stringexpressions|string_expression]]
  
 ==== Description ==== ==== Description ====
-Returns a portion of the specified //string_expr//, starting from the //start character//, and continuing for //length// characters.+Returns a portion of the specified [[stringexpressions|string_expression]], starting from the //start character//, and continuing for [[integerexpressions|length_expression]] characters or the end of the [[stringexpressions|string_expression]].
  
  
Line 12: Line 12:
 <code> <code>
 print mid("Hello", 2, 3) print mid("Hello", 2, 3)
 +print mid("Hello", 2, 999)
 </code> </code>
 will display will display
 <code> <code>
 ell ell
 +ello
 </code> </code>
  
 ==== See Also ==== ==== See Also ====
 {{page>en:start#String Handling&noheader}} {{page>en:start#String Handling&noheader}}
 +==== History ==== 
 +|0.9.5b|New To Version|
 +|1.99.99.53|Added length < 0|
 +|1.99.99.53|Added start position < 0|
 +
en/mid.1451713290.txt.gz ยท Last modified: 2020/02/28 10:46 (external edit)