PDA

View Full Version : Do you know: Dynamic $IniFile



ReneMiner
20-12-2015, 15:22
Most scripts that make use of some user-defined settings use some *.ini-File, so its obvious to have the ini named as the main-scriptfile located on disk next to the main-script.

I use a Const $IniFile very much that gets dynamic assigned on startUp and it makes me never have to care about this any more.




Uses "Ini", "File"

$IniFile = APP_ScriptPath & FILE_PathSplit(IIf$(APP_ScriptName = "" , APP_Name, APP_ScriptName ), %PATH_FILE) & ".ini"


Nice were if INI-module would have this by default like $INI_File or $APP_Inifile
Maybe also implemented to core (APP-functions) and only returns a value if Uses "Ini"
but I can live with using both ("Ini" & "File")

ErosOlmi
20-12-2015, 22:49
Nice one! Thanks

I will add in one of the next betas.