When I click Listbox Header, how can I detect the column number?
I can’t work it out.
LISTBOX GET CELL POSITION(*;$t_ObjectName;$l_Column;$l_Row)
$l_Column and $l_Row are both zero
OBJECT Get name(Object current)
And inferring the column number from the Column Name, but this returns the Name of the Listbox, not the Column.
The only way I’ve found is to put an Object Method in each column and hard code the column number there. But, this doesn’t work for generic programming, and breaks if I change the order of the columns either in Design or at Runtime.
It seems like it should be easy, but I’m stuck. Any ideas anyone?
In case it makes a difference, the Listbox is displaying a Collection.
Thanks in advance for any help.