这个函数是什么意思
本帖最后由 smile00_0 于 2013-11-26 11:55:36 编辑 各位大神们,谁能给我解释一下这个函数的意思,谢谢谢谢。初学者,实在是看不懂。。
function TMemIniFile.ReadString(const Section, Ident,
Default: string): string;
var
I: Integer;
Strings: TStrings;
begin
I := FSections.IndexOf(Section);
if I >= 0 then
begin
Strings := TStrings(FSections.Objects[I]);
I := Strings.IndexOfName(Ident);
if I >= 0 then
begin
Result := Copy(Strings[I], Length(Ident) + 2, Maxint);
Exit;
end;
end;
Result := Default;
end;