I’m under the weather right now, and I am where I only have pure MS products…no LO. I’m happy to see about sample code, but it will be a few days. Others on the forum may respond, too, of course.
Typically when you want an object by a “hidden” handle you iterate through all the objects using that handle member as your indexing value and reading another handle and comparing it with a known value. Then you pass back the iterator indexing value to use to retrieve that object. It seems “wasteful,” but whether you do it or the API does it, it’s got to get done no matter. Keep reading…but first…
Can you post an example of where you are…an ODS that builds a list box?
I assume you are wanting to know how to find the ControlNumber to pass to the list box loader routine. Well, there must be some specific value that each list box has. What is that for you? Is it a Name value, etc.? What you’ll do is iterate over all list boxes (even all drawing objects) by control number then read and compare with the Name, or whatever value you use to distinguish your list boxes. Since you are iterating over the control number, you have that number as your iterating index, so once you get a match comparing the Name or whatever, you pass back that index. Just remember to begin with that you have to use an explicit iterating index variable, since you’ll need it to pass back–you can’t use a FOR EACH or the like. Also, since you may not be able to know the range of control numbers in use, you’ll probably need error catching so that as you iterate i from 1 to 100 (as it were) the code will just move on if a control with number i doesn’t exist.
I know this is vague, sorry. Post an example, and I’d think it will get resolved pretty quickly.