> I am calling LstGetSelection to find the currently selected
> item in a list.
> When I make the call nothing is selected in the list. I am
> expecting to get
> back "noListSelection" (-1), but I always receive 0
> indicating the first
> element is selected. My List is associated with a Trigger,
> so maybe that
> has something to do with it.
>
> Has anyone else encountered this? I'm not sure how to
> mandate a selection
> in the list without the proper return value.
The first element in the list is selected by default. If you want to
start out with nothing selected, call
LstSetSelection(FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, ListID)),
-1)
when you initialize the form.
-hkmlt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/