Results 1 to 2 of 2

Thread: Do you know: Dynamic $IniFile

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    Do you know: Dynamic $IniFile

    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")
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Nice one! Thanks

    I will add in one of the next betas.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. IniFile - module for INI file handling
    By Petr Schreiber in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 6
    Last Post: 18-03-2016, 21:21
  2. Simple dynamic UDT-subarrays
    By ReneMiner in forum General purpose scripts
    Replies: 0
    Last Post: 24-10-2014, 14:11
  3. Oh wow, got it working, dynamic textures
    By kryton9 in forum TBGL General
    Replies: 16
    Last Post: 22-06-2007, 01:45

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •