TeleFlow BasicScript Substr

TeleFlow BasicScript Substr

From TeleFlow

Revision as of 19:06, 20 May 2008 by Wikilib (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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"