U mean like this?..
case lstSelectEvent: if (eventP->data.lstSelect.listID == TerminalList) { Int16 theSelection;
theSelection = eventP->data.lstSelect.selection; LstGetSelection(0);
}
theSelection would no hold the index of the recently selected list item.
Check your LstGetSelection( 0 ) call. That function takes a pointer to a ListType. Are you sure 0 is a valid pointer. That function also returns the same value that is already in theSelection so it's unnecessary here.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
