TeleFlow BasicScript Substr

TeleFlow BasicScript Substr

From TeleFlow

(Difference between revisions)
Jump to: navigation, search

Wikilib (Talk | contribs)
(New page: Extracts a substring from a string value.<br> <br> ===Syntax=== :SUBSTR(<b><i>string</i></b>,<b><i>position</i></b>,<b><i>number</i></b>)<br> <br> :<b>string:</b> a string value or variabl...)
Next diff →

Current revision

Extracts a substring from a string value.

Syntax

SUBSTR(string,position,number)


string: a string value or variable.
position: : the starting position (index) in the string. Must be numeric, valid range is from 1 (the first character in the string) to the total number of characters in the string.
number: : the number of characters to copy from the position. Must be numeric.


Related Steps

Image:Iv_517.gif BasicScript

Examples

BasicScript code      Result
@A = SUBSTR("HELLO WORLD",7,2)    WO
PRINT "@A"