Browse Source

* Some routines for list index error, delphi-compatible

Michaël Van Canneyt 1 year ago
parent
commit
816e3fc538
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/objpas/sysconst.pp

+ 2 - 0
rtl/objpas/sysconst.pp

@@ -150,6 +150,8 @@ const
   SPatternCharMismatch          = 'Pattern mismatch char "%s" at position %d.';
   SPatternCharMismatch          = 'Pattern mismatch char "%s" at position %d.';
   SAMPMError                    = 'Hour >= 13 not allowed in AM/PM mode.';
   SAMPMError                    = 'Hour >= 13 not allowed in AM/PM mode.';
   SErrListIndexExt              = 'List index out of bounds (%d): %s object range is 0..%d';
   SErrListIndexExt              = 'List index out of bounds (%d): %s object range is 0..%d';
+  SListIndexErrorEmptyReason = '%s is empty';
+  SListIndexErrorRangeReason = '%s object range is 0..%d';
 
 
   SShortMonthNameJan = 'Jan';
   SShortMonthNameJan = 'Jan';
   SShortMonthNameFeb = 'Feb';
   SShortMonthNameFeb = 'Feb';