Hello Stephen,
Under this context (prior to formshow), when a value of -1 is being returned, it
creates a listbox error, even though that value should be valid.

However, once the LB has been displayed, this error does not present itself.
(I havent delved into it further to figure out why).

So says another simple programmer..........
Alistair+
SB> Would an expert please explain to a simple programmer (me) the
SB> difference between:
SB>   if SendMessage(Listbox1.Handle, LB_GETITEMDATA, Listbox1.Items.Count,
0) >> 0 then Listbox1.Selected[0] := false;
SB> and 
SB>   if Listbox.Items.Count > 0 then Listbox.Selected[0] := false;


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to