首页 > comp > gb.settings > settings > defaultdir 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
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.

Example

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.