ENTRIES keyword

Applies To

List box and combo box components

Component property: List source

Description

Specifies the entries in an Inline-type list of values (INLINE) for a list box or combo box.

Syntax

Single-column list

ENTRIES( entry1 [ , entry2 , . . . ] )

Part Description
entry1 entry2 Expressions that evaluate to strings, which can display as entries in the list.

Multiple-column list

ENTRIES( entry1a \ entry1b . . . [ , entry2a \ entry2b . . . ] )

Part Description
entry1a entry1b Expressions that evaluate to strings, which can display as table cells in the first row of the list.
entry2a entry2b Expressions that evaluate to strings, which can display as table cells in the second row of the list.

Remarks

In a multiple-column list, by default all columns display in the order in which you specify entries as parameters to the keyword, and the component is bound to the first column. You can use the DISPLAY keyword to override the default and specify which columns show in the list and the order in which they are shown. You can use the VALUE keyword to bind the component to a specific column.

Examples

This example creates a list consisting of three entries:

INLINE ENTRIES(New,Used,Reconditioned)

The next example creates a two-column list, displays the second column (for example, New), and binds the component to the first column (for example, 10).

INLINE ENTRIES(10\New,20\Used,30\Reconditioned) DISPLAY(2) VALUE(1)