Problem: Given a list value, find the numeric index in the list for that value

I am trying to initialize a form with the values in an existing DB record.

There are several popup triggers and associated lists in the form. The 
actual list values (not the list index) is what's stored in the DB. I need 
to set the current value of the list, which requires an item number for 
LstSetSelection, as well as the text contents of the popup trigger.

How to find the item number? I thought of two ways:

* Iterate through the list structure
* Open the resources and look there

The first way doesn't work since the emulator complains that I'm looking at 
memory I shouldn't I don't want to force that through unless the consensus 
here is that it's proper in this case.

What do others do?

</edg>
Ed Greenberg


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