Re: How to get the element label in an List Item, Forms 4.5
Date: 1998/03/17
Message-ID: <01bd5172$eed99380$45f11286_at_itwol-pc3963.itwol.bhp.com.au>#1/1
Jocke,
The Help example for Get_List_Element_Count points to one solution, which is to loop through the List and, when the ID value matches the current value of your list item, use Get_List_Element_Value.
You could do this whenever required or use a When-List-Changed trigger to save the label for the current list item in a separate text item (not displayed on the canvas). Either way I am not aware of an easy solution that avoids looping through the list.
Jocke <hhh_at_abb.se> wrote in article <01bd50c0$ca60db10$d26add8a_at_pc2095>...
> Hello
>
> I've got a question about list items.
>
> I'm using a combo box to show values from a table
> where the column is an ID column and the shown labels
> are fetched into a record group from an other table.
>
> Is there a way to get the current label from the listbox ?
>
> The built-in GET_LIST_ELEMENT_LABEL can get labels out of
> a list item, but it needs a list_index as argument, and I do not
> know how to get this list_index for the current label.
>
> Thanks
> /Jocke
Received on Tue Mar 17 1998 - 00:00:00 CET