The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at SUBSTR.

Returns a substring of textitem, starting at position. The textitem can be a literal string, a constant preceded by a %, or the string returned by a macro function.

name SUBSTR textitem, position [[, length]]  

Directives Reference