-
I am trying to set 3 tab stops across a list box.
When using the function:
SendMessage List1.hwnd, LB_SETTABSTOPS, UBound(ListBoxTabs), ListBoxTabs(1)
what should the last parameter be??
Should it be ListBoxTabs(0) - i.e. the first in the list?
Should it be ListBoxTabs(i) - and loop round from 0 to 2 to set the three tabs?
Should it be ListBoxTabs(1) - because in fact 1 is the first in the list and the array goes from 1 to 3, rather than 0 to 2?
Thanks,
Chris
-
-
More confusion....
That example shows the final parameter as being ListBoxTabs(0) - as I suspect it should be.
BUT it also introduces a different option for the 3rd parameter! Rather than using UBound(ListBoxTabs), it uses UBound(ListBoxTabs) + 1.
Does anyone know?? Does it matter??
I believe that it does matter, as my application crashes on the 6th or 7th time through the code on Windows 98 when using the third parameter of ListBoxTabs(1). On Win2000 systems it works perfectly.....
I have modifed the 4th parameter to ListBoxTabs(0), and it hasn't crashed - but it might do as soon as I finish this!!
Cheers, Chris