comp • gb.settings • settings • save

Settings.Save (gb.settings)

Sub Save ( )

Saves the configuration file to the disk.

This is automatically done when the setting object is freed.

If no settings has been modified, this function does nothing.

The file is entirely re-written from scratch. Consequently, all comments line and the original line order are lost.

Since 3.7

Since Gambas 3.7, only the modified settings are really saved. That allows to share the same settings file between two applications running simultaneously.