Application.Save -- save program configuration (V1.7)
mui.DoMethod(id, "Save", name$)
Application.Save, Application.Load and Notify.ExportID offer an easy way of saving and loading a program's configuration.

Each gadget with a Notify.ExportID will get its contents saved during Application.Save and restored during Application.Load. This makes it very easy to design a configuration window with "Save", "Use" and "Cancel" buttons to allow the user storing the settings. When the application starts, you would just have to call Application.Load and the stored settings will be read and installed.

The name$ parameter must be set to the name of the file you wish to save the settings to. Usually you won't need to think of a real name but instead use one of the following special values:

Save settings to ENV:.

Save settings to ENVARC:.

Not all classes are able to import and export their contents. Currently, you may define a Notify.ExportID for

String class
String.Contents is ex/imported.

Radio class
Radio.Active is ex/imported.

Cycle class
Cycle.Active is ex/imported.

Listview class
Listview.Active is /ex/imported.

Text class
Text.Contents is ex/imported.

Slider class
Slider.Level is ex/imported.

Area class
Area.Selected is ex/imported (e.g. for Checkmark gadgets)

Menuitem class
Menuitem.Selected is ex/imported.

Group class
Group.ActivePage is ex/imported.

id of the application object
name of the file you wish to save the settings to or special value (see above)

Show TOC