Skip to main content
6-Contributor
February 1, 2012
Solved

Saving State of ListBox

  • February 1, 2012
  • 1 reply
  • 5398 views

I'm wanting to save the selection in my list box when the file is saved, closed and reopened. The attached example file populates from the MS Excel file also attached. I've used these listbox controls in my MathCAD files for years and have always reset values when reopening files or set values manually. I'm noticing some discussions in the usage group that would indicate that it is possible to edit the script and have the listbox setting save it's selection when the file is saved and closed. I would appreciate your comments and suggestions.

Best answer by RichardJ

The script in the listbox needs to be changed. See the new versions of the worksheets here: Saving the state of controls.zip

1 reply

19-Tanzanite
February 1, 2012

See: Saving the state of controls.zip

If you use controls you might also be insterested in Extra Components.mcd

entec26-ContributorAuthor
6-Contributor
February 1, 2012

In reviewing these listbox examples, they are populating from script strings can the script be edited to allow population from an input table?

19-Tanzanite
February 1, 2012

Look in the "Extra Components" worksheet. Look for "dynamically filled listboxes".