Einzelnen Beitrag anzeigen

Aviator

Registriert seit: 3. Jun 2010
1.611 Beiträge
 
Delphi 10.3 Rio
 
#10

AW: Eine Ini-Section in ein andere Ini kopieren

  Alt 9. Mai 2017, 10:31
Zitat:
Eine noch einfachere Variante wäre, dass du einfach die Funktion TIniFile.ReadSectionValues zu Hilfe nimmst. Die macht schon genau das für dich und liest dir alle Keys und Values aus einer Section in eine TStringList ein.
ReadSection liest die "Namen"/"Identifiers",
ReadSectionValues liest nur die "Werte"



siehe Post UR
Also in der Dokumentation steht was anderes. Es sei denn, die wäre falsch.

Zitat von Embarcadero DokWiki:
Description

Reads the values from all keys within a section of an INI file into a string list.

Call ReadSectionValues to read the keys, and the values from all keys, within a specified section of an INI file into a string list object (TStrings descendant). The key names and values are added to the string list as strings of the form:
Code:
<keyname> = <value>
  Mit Zitat antworten Zitat