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

Hi,

I really need to determine the list id of a popup trigger. How would you recommend doing this in a portable manner? Possibly reading the resources?

Regards,
Chris

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to