Difference between revisions of "SelectText"

m (adding doc status category stub page)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
   
 
   
Returns a substring.
+
==SelectText(text, ''first, last'')==
 +
Returns the substring of text from «first» to «last» characters (first character is «first»=1). «last» is optional, if omitted or zero, returns the substring starting at «first» to the end.
  
SelectText( Text : Textual ; First, Last : optional numeric )
+
== Examples ==
 +
:<code>[[SelectText]]("Hello World", 7) &rarr; "World"</code>
 +
:<code>[[SelectText]]("Hello World", 1, 5) &rarr; "Hello"</code>
 +
:<code>[[SelectText]]("Hello World", 7, 9) &rarr; "Wor"</code>
 +
:<code>[[SelectText]]("Hello World", 3, 2) &rarr; ""</code>
  
{{stub}}
+
 
 +
==See Also==
 +
* [[FindInText]]
 +
* [[Text functions]]

Latest revision as of 00:54, 25 March 2016


SelectText(text, first, last)

Returns the substring of text from «first» to «last» characters (first character is «first»=1). «last» is optional, if omitted or zero, returns the substring starting at «first» to the end.

Examples

SelectText("Hello World", 7) → "World"
SelectText("Hello World", 1, 5) → "Hello"
SelectText("Hello World", 7, 9) → "Wor"
SelectText("Hello World", 3, 2) → ""


See Also

Comments


You are not allowed to post comments.