>I am retrieving the list id associated with a popup trigger and am wondering
>how portable the code is?
>...
> // I hope this is portable between OS versions!
> FormObjListType *frmObjs = pForm->objects;
It isn't. This will work for now, but won't in future OS versions.
Use FrmGetNumberOfObjects() and FrmGetObjectType() - nice supported APIs
which do exactly what you want!
There's also the question of why you need to do this, instead of using
FrmPopupList() - perhaps you didn't know that existed? Usually the list
for a given popup is a static thing, so people don't usually need to do
this sort of thing. Or else just watch for the ctlEnter event and do your
special processing before (or instead of) giving it to the system.
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/