Hi All,
 
How do I select a list box control (using code). I've tried using say
if ListBox1.items.count > 0 then
  ListBox1.selected[0] := true;
but I get an exception "List Index out of bounds (0)". The help indicates that "selected" can be used to check if the current line is selected but doesn't say if you can use it to set it. 
 
Richard Williams

Reply via email to