Changeset 326 for trunk/ItemList.pas


Ignore:
Timestamp:
Jun 25, 2024, 3:22:12 PM (4 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ItemList.pas

    r317 r326  
    9898
    9999resourcestring
    100     SUnsupportedDataType = 'Unsupported field value data type %s';
     100  SUnsupportedDataType = 'Unsupported field value data type %s';
     101  SUnsupportedValueIndex = 'Unsupported value index %d';
    101102
    102103
     
    367368procedure TItem.GetValue(Index: Integer; out Value);
    368369begin
    369   raise Exception.Create('Unsupported value index ' + IntToStr(Index));
     370  raise Exception.Create(Format(SUnsupportedValueIndex, [Index]));
    370371end;
    371372
     
    426427procedure TItem.SetValue(Index: Integer; var Value);
    427428begin
    428   raise Exception.Create('Unsupported value index ' + IntToStr(Index));
     429  raise Exception.Create(Format(SUnsupportedValueIndex, [Index]));
    429430end;
    430431
Note: See TracChangeset for help on using the changeset viewer.