Difference between revisions of "SelectText"

(examples)
Line 2: Line 2:
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
   
 
   
==SelectText(Text, ''First, Last'')==
+
==SelectText(text, ''first, last'')==
Returns a substring.
+
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 ==
 +
:<code>[[SelectText]]("Hello World", 6) &rarr; "World"</code>
 +
:<code>[[SelectText]]("Hello World", 1, 5) &rarr; "Hello"</code>
  
[[Syntax]]:
 
:[[SelectText]](Text: Textual; First, Last: optional numeric)
 
  
 
==See Also==
 
==See Also==
 
* [[FindInText]]
 
* [[FindInText]]
 
* [[Text functions]]
 
* [[Text functions]]

Revision as of 00:51, 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", 6) → "World"
SelectText("Hello World", 1, 5) → "Hello"


See Also

Comments


You are not allowed to post comments.