Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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.
The script in the listbox needs to be changed. See the new versions of the worksheets here: Saving the state of controls.zip
See: Saving the state of controls.zip
If you use controls you might also be insterested in Extra Components.mcd
In reviewing these listbox examples, they are populating from script strings can the script be edited to allow population from an input table?
Look in the "Extra Components" worksheet. Look for "dynamically filled listboxes".
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?
The script in the listbox needs to be changed. See the new versions of the worksheets here: Saving the state of controls.zip
Thanks, this is something I've been working around in my work sheets for several years.