User Tools

Site Tools


en:mid

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:mid [2016/05/09 23:47]
francisco [Description]
en:mid [2016/08/13 14:16]
admin
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 or the end of the //string_expr//.+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}}
en/mid.txt ยท Last modified: 2020/02/28 10:46 (external edit)