At 05:42 2002-10-17 -0400, you wrote: >Hi All, > I'm trying to use the callback function with the > list(LstSetDrawFunction) to create a dynamic list. Everything compiles > successfully, but during debugging, I only saw the name of the first > student appearing on the dynamic list like this: > >Alex >Alex //should be other name >Alex //should be other name >Alex //should be other name >Alex //should be other name >Alex //should be other name >Alex //should be other name > >... until the end of the list. Thus, I use a (for) loop in the call back >function and I obtain the same as the above except this time, it's the >last student's name =( >I'm sorry for asking such a "newbie" question but I hope someone could >tell me what actually is wrong or anything I'm missing.
Your callback function should only draw one item -- it will get called once for each list element, each time with a different item number. Your code currently draws the strings for every student for every list item, always ending on the same one. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
