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.

I have coded as follows:

    iSelected = LstGetSelection( GetObjectPtr(RFSDetailServiceClassList));
    if(iSelected == noListSelection) {
         FrmCustomAlert(SayAnythingAlert, "Service Class not Selected.
Please Select from the available Choices.", " ", " ");
         FrmSetFocus (pFrm, FrmGetObjectIndex(pFrm,
RFSDetailServiceClassList));
         return (false);
    }

Thanks,
Mark Douglas






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to