--- SU DUY TRINH wrote:
>    I have a pop list(popup trigger has ID 
> is TwoSelect2PopTrigger and its list has ID 
> is TwoSelect2List),I use GetObjectPtr() to 
> receive pointer to popup trigger and its 
> list,then I use LstGetSelection(pList) to 
> receive index of selected item in list and 
> LstGetSelectionText(pList,index) to receive 
> text of selected item in the pop list,but
> the text that I receive is garbage,sometimes,
> it has the report:Access "Low Level memory",
> What am I wrong?

It sounds like you are trying to get the selection at
the wrong time.  When an item is selected from a popup
trigger, your app receives a popSelectEvent.  Then you
can use code like the following (in your
MainFormHandleEvent) to deal with it:

case popSelectEvent:
  if ( eventP->data.popSelect.controlID ==
TwoSelect2PopTrigger )
  {
    if ( eventP->data.popSelect.selection == Whatever
)
      // respond to selection of Whatever


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
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