Functions (all)

Section

Function Name:
Section
Description:

This function is for use with text fields that are separated into multiple sections - either using commas or using any other series of one or more characters as separator characters to define the 'boundaries' of each section.  It allows a specific section to be retrieved.

See also TextPart.

Minimum FH Version:
7.0
No. of Parameters:
3
Return Type:
Text
Parameter 1:
String.  The input text
Parameter 2:
Number. Optional.  Defaults to 1 if not supplied.  The section to be returned.  Specify 1 for the first, 2 for the second, and so on.
Parameter 3:
String.  Optional.  Defaults to a comma, if not supplied.  This is the text to be used as 'separator' for the different sections
Examples:

Assuming the input text (%INDI.NOTE2%) contains "ready||steady||go", the following function calls will return the values shown:
=Section(%INDI.NOTE2%,1,"||") ready
=Section(%INDI.NOTE2%,2,"||") steady
=Section(%INDI.NOTE2%,3,"||") go