TCustomIniFile

From: Brian (brian_at_nrwp.co.uk)
Date: 04/25/04

  • Next message: Evil miniFAQ Boss: "FAQ: comp.lang.pascal.delphi.misc miniFAQ (short version)"
    Date: Sat, 24 Apr 2004 23:53:20 +0100
    
    

    Hi

    I'm having trouble with a bit of code, I am trying to read keys into a
    TStringList
    and Values in to another TStringList from a INI file.

    I have read the help files, if I use a Tinifile and then use
    ReadSectionValues
    it reads the key and the value in to the TStringList, which not what I want.
    IF I use a TCustomIniFile and then use ReadSectionValues it should just
    read the Values in to the TStringList according to the help file, but I get
    a 'abstract' error, what is a abstract error and why am I getting it?

    Below is the code i'm writting

    WalletTitles := TStringList.Create;
      WalletValues := TStringList.Create;
      RecipientTitles := TStringList.Create;
      RecipientValues := TStringList.Create;

      MyIniFile := TCustomIniFile.Create(AppDir+'dll\PriceInfo.ini');
      WalletTitles.Clear;
      WalletValues.Clear;

      MyIniFile.ReadSection('Wallet', WalletTitles);
      MyIniFile.ReadSectionValues('Wallet', WalletValues);

      RecipientTitles.Clear;
      RecipientValues.Clear;
      MyIniFile.ReadSection('Recipient', RecipientTitles);
      MyIniFile.ReadSectionValues('Recipient', RecipientValues);

      MyIniFile.Free;


  • Next message: Evil miniFAQ Boss: "FAQ: comp.lang.pascal.delphi.misc miniFAQ (short version)"