Hi All, 
   I'm reposting the previous thread with a new subject header. I had a dynamic popup 
list displaying a list of databases, and other dynamic list to display
the records in the selected database. When I run the application, the list displaying 
the records is not working when I select a database to be display. I had done the 
following codes..

const char *theText; //global variable

static Boolean MainHandleEvent(EventPtr eventP)
{
    Boolean handled = false;
    FormPtr frmP;

switch (eventP->eType) //breakpoint1
{
case lstSelectEvent: //breakpoint2
switch (eventP->data.lstSelect.listID == MainDBSelectList) {
    
    UInt16 inex;

    frmP = FrmGetActiveForm();
    lstP = (ListType *) FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, 
MainDBSelectList));
    inex = LstGetSelection(lstP);
    theText = LstGetSelectionText(lstP, inex);//breakpoint3
      //Get a pointer from Selected DB and Find
      // the database   
      FillListWithDB(lstP); //Dynamic Function
  }

return handled; //breakpoint4
}
 
I set some breakpoints, it then stops at breakpoint1. Then I click "step into", the 
application skips breakpoint2 and 3, and stops at breakpoint4. During debugging, I 
noticed breakpoint2 and 3 become faded red color unlike the other two breakpoints in 
solid red color. I'm using Codewarrior 7.0 and I had no idea why it skip breakpoint2 
and 3. What should I do now? Am I missing something?

Another question is that MainDBSelectList is a dynamic popup list. Should I use 
popSelectEvent instead of lstSelectEvent although I had tried both events but same 
problem.
 
Sorry about the long post. 
Many Thanks.
Regards
Lauren




_____________________________________________________________
Play the Elvis� Scratch & Win for your chance to instantly win $10,000 Cash
- a 2003 Harley Davidson� Sportster� - 1 of 25,000 CD's - and more!
http://r.lycos.com/r/sagel_mail_scratch_tl/http://win.ipromotions.com/lycos_020801/index.asp?tc=7087
 

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

Reply via email to