SUBSTR( ) Function
Returns a character string from the given character expression or memo field, starting at a specified position in the character expression or memo field and continuing for a specified number of characters.
SUBSTR(cExpression, nStartPosition [, nCharactersReturned]) |
Parameters
- cExpression
-
Specifies the character expression or memo field from which the character string is returned.
- nStartPosition
-
Specifies the position in the character expression or memo field cExpression from where the character string is returned. The first character of cExpression is position 1.
Note If nStartPosition is greater than the number of characters in cExpression, SUBSTR( ) returns an empty string ("").
- 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.
Return Value
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic

Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08