adding and saving list box items programatically

  • Thread starter Thread starter Santiago Gomez
  • Start date Start date
S

Santiago Gomez

I have a list box where users can add their frequently used search strings.

how can I save the contents of the listbox so it stays even after the form
is closed and reopened?
 
Here are a couple of suggestions

If you only want the contents for the duration of the
session, create a public string variable, load the contents
of the string into the list box rowsource property when the
form is loaded and save the rowsource property into the
global when the form is unloaded.
If you wish to keep the contents across multiple sessions
then create a table to hold the rowsource property. As
with the first suggestion, you will need to populate the
rowsource property when the form is loaded and update the
table when the form is unloaded.

Gerald Stanley MCSD
 
Back
Top