Functions (all)

MidText

Function Name:
MidText
Description:
Returns a text string with a specified number of characters, extracted from a given starting position within a given text string.  The returned string will consist of all remaining characters if these are shorter than the specified length (or if the specified length is 0).  See also the LeftText and RightText functions.
Minimum FH Version:
7.0
No. of Parameters:
3
Return Type:
Text
Parameter 1:
Text.
Parameter 2:
A number.  The starting position.  Set this to 1 to start from the beginning of the string.
Parameter 3:

Optional.  A number.  The number of characters to return in the text string.  If 0, returns all remaining characters in the string.  Defaults to 0 if not supplied.

Examples:

=MidText(%INDI%, 3, 9)
=MidText(%INDI%, 7)