Progress
Report Builder
User’s Guide


ENTRY

Returns a character string entry from a list, based on an integer position. You can use this function to parse a list of values.

SYNTAX

ENTRY ( element , list [ , character ] ) 

element

An integer value that corresponds to the position of a character string in a list of values. If the value of element is unknown (?), ENTRY returns an unknown value. If element is less than or equal to 0, or is larger than the number of elements in list, ENTRY returns an error.

list

A character expression that evaluates to a list of values. The default delimiter for a list is a comma. If the value of list is unknown (?), ENTRY returns an unknown value.

character

A delimiter you define for the list. The default is a comma. This argument allows the function to operate on a noncomma-separated list.

EXAMPLE

To display the first word in a character field, Item-name, create the expression:

ENTRY(1, Item-name, " ") 

Sample data:

Item-Name           ENTRY(1, Item-name, - ")
Fins                       Fins
Tennis Racquet             Tennis
Sweatband                  Sweatband 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095