Navigation:  MCL Reference > String Functions >

SubStr( )

Print this Topic Previous pageReturn to chapter overviewNext page

A Visual FoxPro built-in function which returns a character string from the given character expression.

 

Syntax

SubStr(cExpression,nStartPosition,nCharactersReturned)

 

Argument

cExpression

Specifies the character expression from which the character string is returned.

StartPosition

Specifies the position in the character expression cExpression from where the character string is returned. The first character of cExpression is position 1.

nCharactersReturned

Specifies the number of characters to return from cExpression. If you omit nCharactersReturned, characters are returned until the end of the character expression is reached.

 

Returns

Character

 

 


Page url: http://www.racematenet.com/english/help/index.html?substr.htm