ClassesLib: TStrings.Names[] invalid design declaration
Issue #180
resolved
Hello,
I have noticed that the Names[] property of the TStrings class has a String index instead of an Integer one (as I would expect and as the implementation expects). Compiling this script:
l:= TStringList.Create;
l.Names['bug'];
Works, but fails at runtime.
I have prepared a small fix with a minor enhancement included (adding ValueFromIndex[] property) and some new tests added (patch attached).
Best regards,
Joe
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Fixed Issue
#180- merge patch by Josef Kučera→ <<cset 98f050ed9729>>
- Log in to comment
Thanks, committing soon!