Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Settings.DefaultDir (gb.settings)

Static Property Read DefaultDir As String

This property returns the default directory where settings configuration files are stored.

This example would display the content of the default settings file for your application.

Examples

Public Sub ButtonSettings_Click()
  Print File.Load(Settings.DefaultDir &/ Application.Name & ".conf")
Catch
  Message.Error(Error.Text)
End

Note that we need to CATCH any possible error when reading the file. The settings file may not exist the first time the application is run or the user may have deleted the file.