Results 1 to 4 of 4

Thread: WriteINI

  1. #1
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default WriteINI

    Doesnt seem to be letting me create this directory. Im a newb to this so could someone explain to me what im doing wrong in this proc?

    (btw its to save settings in a form)

    SCAR Code:
    WriteINI('General','SRL_ID',SRL_ID.Text,'Settings');

    Thanks
    METAL HEAD FOR LIFE!!!

  2. #2
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program New;
    var
    filename:string;
    begin
    FileName := AppPath + 'Scripts\settings.ini';
    WriteINI('TestSection', 'TestKey', 'TestString', FileName);

    end.

    try it, it will work. Edit the path. You don't have to make it an .ini also it will write and read from any file.

    Rep is apreciated ++
    I do visit every 2-6 months

  3. #3
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    Thanks bro! Worked like a charm

    Rep +
    METAL HEAD FOR LIFE!!!

  4. #4
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You also can you SaveSetting and LoadSetting (default SCAR ini).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. WriteINI(); Question...
    By Barrier in forum OSR Help
    Replies: 5
    Last Post: 08-04-2007, 08:55 PM

Posting Permissions

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