When a key in a ini file has more than one version, Delhi would take the
last value. FPC 3.0.4 takes the
first value. Not a big deal, I tend to have multiple versions of a key for quick testing, but was this a deliberate design change?
In IniFiles ReadString uses KeyByName to find a key:
for i := 0 to Count-1 do
if CompareText(Items[i].Ident, AName) = 0 then begin
Result := Items[i];
Break;
Btw: imho using a break in a for-loop is a sloppy programming practice. Is that because of my old-skool background?