Take Command / TCC Help v. 13.03

@SUBSTR

Hide Navigation Pane

@SUBSTR

Previous topic Next topic No directory for this topic No expanding text in this topic  

@SUBSTR

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

@SUBSTR[string,start,length] :  An older version of @INSTR. If the length is omitted, it will default to the remainder of string. If string includes commas, it must be quoted with double quotes ["] or back-quotes [`], or each comma must be preceded by an Escape character The quotes count in calculating the position of the substring. @INSTR, which has string as its last parameter, does not have this restriction.

 

Numeric input may be entered in either decimal format (a sequence of 0-9 digits) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).

 

Examples:

 

echo %@substr[this is useful,8]

echo %@substr[this is useful,8,-2]

echo %@substr["commas, they DO matter",9]

echo %@substr[commas^, they DO matter,9]

 

See also: @INSTR.

Comments (...)