Saving State of ListBox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Saving State of ListBox
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.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The script in the listbox needs to be changed. See the new versions of the worksheets here: Saving the state of controls.zip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
See: Saving the state of controls.zip
If you use controls you might also be insterested in Extra Components.mcd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In reviewing these listbox examples, they are populating from script strings can the script be edited to allow population from an input table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Look in the "Extra Components" worksheet. Look for "dynamically filled listboxes".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Now how do we save the settings in the dynamically filled listboxes when saving and exiting a MathCAD file? I've attempted to add the saveData( ) command to my file. I've revised and added imputs to my listbox - no success. Can you help clarify this procedure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The script in the listbox needs to be changed. See the new versions of the worksheets here: Saving the state of controls.zip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks, this is something I've been working around in my work sheets for several years.
