Mr Olaf, (or anyone who can answer this)
I have a list box populated by a cursor. The listbox can show about 10 items. My cursor ofcourse has more than 10 records, let's say 150 recs, so not all of them show in the ListBox. Ok, my question is this: Is there any way (any built in property, function - or code that i can write) to somehow get the absolute POSition of the selected item in the ListBox in reference to the (physical) ListBox itself? What I mean is this: I'm looking for the number that tells me where in the visual list box my selected record is LOCATED, AS IN: if the SECOND visible item in the listbox is selected, then the number i'm looking for is a 2. If visible item about half way onto the listbox is selected, then i'm looking for number 5 or 6, if the last visible item in the listbox is selected, then i'd need a 10. So the numbers i'm looking for range between 1 and 10, which is max visible items in this listbox. I've experimented with ItemData, ItemID, ItemIndex, etc... you name it, they all return a number which is similar to a RECORD number which ranges between 1 and 150 which is my max number of records in the Cursor - and that is not what i need. ************************* ... ALSO, could anyone shed some light on why so many properties that are similar for a listbox? for example: ListItemID, and ListIndex, ItemData, ItemIDData, ItemIdToIndex, IndexToItemId ??? thank you very much
Mike
I have a list box populated by a cursor. The listbox can show about 10 items. My cursor ofcourse has more than 10 records, let's say 150 recs, so not all of them show in the ListBox. Ok, my question is this: Is there any way (any built in property, function - or code that i can write) to somehow get the absolute POSition of the selected item in the ListBox in reference to the (physical) ListBox itself? What I mean is this: I'm looking for the number that tells me where in the visual list box my selected record is LOCATED, AS IN: if the SECOND visible item in the listbox is selected, then the number i'm looking for is a 2. If visible item about half way onto the listbox is selected, then i'm looking for number 5 or 6, if the last visible item in the listbox is selected, then i'd need a 10. So the numbers i'm looking for range between 1 and 10, which is max visible items in this listbox. I've experimented with ItemData, ItemID, ItemIndex, etc... you name it, they all return a number which is similar to a RECORD number which ranges between 1 and 150 which is my max number of records in the Cursor - and that is not what i need. ************************* ... ALSO, could anyone shed some light on why so many properties that are similar for a listbox? for example: ListItemID, and ListIndex, ItemData, ItemIDData, ItemIdToIndex, IndexToItemId ??? thank you very much
Mike