Core Function SubStr

From Sputnik Wiki
Revision as of 12:35, 29 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
SubStr( <expression>, <start>, <end> )

Contents

Description

Return part of a string

Parameters

expression

The expression to evaluate.

start

The character position to start. (0 = first character)

count

Optional; The number of characters to extract. By default the entire remainder of the string.

Return Value

Success: Returns the extracted string.

Failure: Returns an empty string.

Remarks

None.

Example

$var = Substr("I am a string", 2, 2);
MsgBox("2 chars extracted from position 2 are: $var");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox