Easy ListBox Questions

Easy ListBox Questions

Post by Paul Weisber » Thu, 07 Dec 2000 04:00:00



1.  You can easily tie a list box to a table so that when you click on an
item in the list, the record pointer moves.  However, how the heck do you
make the listbox index move if the user moves the record pointer in the
table by some other means???  (Would be nice to just set a property of the
listbox and not write any search code.)

 2.  Is there any way to insert a seperator (a line) into the standard
listbox?

P. Weisberg

 
 
 

Easy ListBox Questions

Post by Tim Witor » Sat, 09 Dec 2000 02:21:59



> 1.  You can easily tie a list box to a table so that when you click on an
> item in the list, the record pointer moves.  However, how the heck do you
> make the listbox index move if the user moves the record pointer in the
> table by some other means???  (Would be nice to just set a property of the
> listbox and not write any search code.)

There is no simple "set a property" way to do either of these
things.  In whatever code moves the table's record pointer,
you would have to set the listbox's ListItemID to the corresponding
value.

Quote:>  2.  Is there any way to insert a seperator (a line) into the standard
> listbox?

Same as you do it in a menu, place an item in the list with
the value of "\-" (backslash, dash).

-- TRW
_______________________________________
My e-mail:  t r w 7

_______________________________________