SListIndexError is a constant string declared in Delphi 4 in the unit Consts.SListIndexError since Delphi 6 is in the unit RTLConsts.The first and the most competent method is to resort to conditional compilation directives:
{$IF CompilerVersion >= 14.0}
// Delphi 6 and higher
RTLConsts
{$ELSE}
Consts
{$IFEND}The second remedy:
The construction
Error(SListIndexError, Index) may be replaced by Error('List Index out of bounds (%d)', Index)

No comments:
Post a Comment