Thema: Ini - Syntax

Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.771 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: Ini - Syntax

  Alt 12. Mai 2009, 15:53
.. mal in die Hilfe schauen

Pfad := MyIni.ReadString('default','datadir',''); [ungetestet]

Nachtrag:

Zitat von DelphiHilfe:
Retrieves a string value from an INI file.

function ReadString(const Section, Ident, Default: String): String; override;

Description

Call ReadString to read a string value from an INI file. Section identifies the section in the file that contains the desired key. Ident is the name of the key from which to retrieve the value. Default is the string value to return if the:

Section does not exist.
Key does not exist.
Data value for the key is not assigned.
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat