substr(data,start,length)

Tinderbox Icon


Operator Type:   Data manipulation
Operator Scope of Action:   Item

Extracts a substring of string. For example:

substr("test",0,1) 

returns "t", while

substr("test",1,2) 

returns "es". All arguments are evaluated; if the designated characters don't exist, an empty string is return.

Note that in expressions like

$Initial=substr($Name,0,1) 

the value of $Name is not changed.


Up: Data manipulation operators
Previous: runCommand(commandLine[,inputs])   

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox