const

  NextErrorLCode = 10515;

const

  ErrorLInvalidPageOffset = 'Error - invalid page offset = %d, page size = %d';
  ErrorLLockByTimeoutFailed = 'Error - cannot lock object, timeout = %d, delay (ms) = %d';
  ErrorLUnlockFailed = 'Error - cannot unlock object';
  ErrorLInvalidPageNo = 'Invalid PageNo = %d';
  ErrorLInvalidRecordNo = 'Invalid record No = %d';
  ErrorLInvalidFloat = '''%s'' is not a valid floating point value';
  ErrorLInvalidBoolean = '''%s'' is not a valid boolean value';
  ErrorLInvalidCurrency = '''%s'' is not a valid currency value';
  ErrorLSystemError = 'System error. Error code = %d';
  ErrorLVarNotArray = 'Not a variant array';
  ErrorLVarArrayBounds = 'Invalid variant array bounds. DimCount = %d, IndexCount = %d';
  ErrorLDuplicateFieldName = 'Duplicate field name %s';
  ErrorLZeroBlockSizeIsNotAllowedForField = 'BLOB block size should be > 0 for field %s';
  ErrorLZeroBlockSizeIsNotAllowed = 'Stream block size = 0 is not allowed';
  ErrorLFieldNameExpected = 'Field name expected, but expression ''%s...'' found at line %d, column %d';
  ErrorLUnexpectedToken = 'Unexpected token ''%s'' found at line %d, column %d';
  ErrorLAmbiguousFieldReference = 'Ambiguous field reference to ''%s''';
  ErrorLAmbiguousFieldReferenceInOrderBy = 'Ambiguous field reference in ORDER BY clause. TableName = %s, ColumnName = %s';
  ErrorLInvalidBitNo = 'Invalid bit no = %d, number of bits = %d';
  ErrorLFieldDoesNotIncludedInGroupByList = 'Field is not included in GROUP BY list. Table name = ''%s'', Field name = ''%s'', FieldNo = %d, Found field name = ''%s''';
  ErrorLInvalidUnionType = 'Invalid union type = %d';
  ErrorLBothJoinAOEqual = 'Both join fields are from the same table. Field1 = ''%s'', Field2 = ''%s'', No1 = %d, No2 = %d.';
  ErrorLEmptyFieldList = 'Empty field list, item count = %d';
  ErrorLInvalidJoinField = 'Invalid field for join operation. Table name = ''%s'', FieldName = ''%s'', i = %d, FieldExists = %d';
  ErrorLEqualRecordsInJoins = 'Equal records in joins, while not EOF loop';
  ErrorLCompareFieldValues = 'Cannot compare values for fields: %s, %s. Error: %s';
  ErrorLInvalidTableNameInReference = 'Invalid table name in reference. Table name = %s, table alias = %s, tname = %s';
  ErrorLCannotFindIndexByID = 'Cannot find index by ID = %d';
  ErrorLCannotFindIndex = 'Cannot find index %s';
  ErrorLNoFieldsInProjection = 'No fields were specified while setting projection';
  ErrorLInvalidFilterExpressionType = 'Invalid filter expression type = %d';
  ErrorLCannotAccessHiddenField = 'Cannot access hidden field: table name = %s, field name = %s, display name = %s, FieldNo = %d';
  ErrorLInvalidFieldLink = 'Invalid field link: table name = %s, FieldNo = %d';
  ErrorLCannotFindField = 'Cannot find field %s';
  ErrorLCannotFindFieldInTable = 'Cannot find field %s in table %s';
  ErrorLCannotOpenTable = 'Cannot open table %s, InMemory = %d';
  ErrorLCannotOpenTableInSQL = 'Error on opening table "%s" (InMemory = %d) in SQL query: %s';
  ErrorLInvalidTopRecord = 'Invalid top row = %d';
  ErrorLIndexFieldMissing = 'Cannot access index field ''%s''';
  ErrorLCircularDataLink = 'Circular datalinks are not allowed';
  ErrorLMissingDataSource = 'Missing MasterSource or DataSource';
  ErrorLLinkDesigner = 'Field %s, from the Detail Fields list, must be linked';
  ErrorLTableExists = 'Table %s already exists';
  ErrorLRecordDoesNotExist = 'Record does not exist, ID = %d, %d';
  ErrorLFilterFunctionOffsetMoved = 'Offset to filter function has been moved. Version should be recompiled with correct offset';
  ErrorLFieldIndexError = 'Field index out of range';
  ErrorLNoFieldIndexes = 'No index currently active';
  ErrorLDifferentListsLength = 'Error - different list lengths. L1 = %d, L2 = %d';
  ErrorLInvalidFieldNumber = 'Invalid field number - FieldNo = %d, FieldCount = %d';
  ErrorLInvalidItemNumber = 'Invalid item number - ItemNo = %d, ItemCount = %d';
  ErrorLNilPointer = 'Nil pointer occured';
  ErrorLErrorGettingFieldData = 'Error getting field data - FieldNo = %d, MemoryOffset = %d, MemoryDataSize = %d';
  ErrorLDatasetIsNotInEditOrInsertMode = 'Dataset not in edit or insert mode';
  ErrorLInvalidRecordSize = 'Invalid record size = 0';
  ErrorLUpdatingRecord = 'Error updating record';
  ErrorLDeletingRecord = 'Error deleting record';
  ErrorLWriteToStream = 'Error writing to stream';
  ErrorLNoFields = 'Error creating table - no fields were specified';
  ErrorLGetRecordFailed = 'Cannot retrieve record';
  ErrorLTableDataNotFound = 'Table not found, table name = %s';
  ErrorLDatasetIsNotInInsertOrEditMode = 'Dataset is not in insert or edit mode';
  ErrorLDatasetIsNotOpened = 'Dataset is not opened';
  ErrorLDatasetIsInReadOnlyMode = 'Dataset is in read only mode';
  ErrorLUpdateRecord = 'Error updating record';
  ErrorLDeleteRecord = 'Error deleting record';
  ErrorLAddingRecord = 'Error adding record';
  ErrorLRetreivingRecord = 'Error retrieving record';
  ErrorLUpdateRecordModified = 'Error updating record - record was modified by another process';
  ErrorLUpdateRecordDeleted = 'Error updating record - record was deleted by another process';
  ErrorLDeleteRecordModified = 'Error deleting record - record was modified by another process';
  ErrorLDeleteRecordDeleted = 'Error deleting record - record was deleted by another process';
  ErrorLCannotDeleteBusyTable = 'Cannot delete table ''%s''. Table is open by another dataset';
  ErrorLCannotRenameBusyTable = 'Cannot rename table ''%s''. Table is open by another dataset';
  ErrorLCannotSaveBusyTable = 'Cannot save table ''%s''. Table is open by another dataset';
  ErrorLCannotLoadBusyTable = 'Cannot load table ''%s''. Table is open by another dataset';
  ErrorLCannotSetPosition = 'Cannot set stream position to %d. Position = %d, Size = %d';
  ErrorLStreamSizeTooSmall = 'Stream size = %d too small. Should be at least = %d';
  ErrorLCannotChangeStreamSize = 'Cannot change stream size. NewSize = %d, Current size = %d';
  ErrorLCompressBufferFailed = 'Compress buffer failed. CompAlg = %d, CompMode = %d, InSize = %d, OutSize = %d';
  ErrorLCannotReadFromStream = 'Cannot read from stream. Position = %d, Stream size = %d, Block size = %d, Bytes Read = %d';
  ErrorLCannotWriteToStream = 'Cannot write to stream. Position = %d, Stream size = %d, Block size = %d, Bytes Write = %d';
  ErrorLDecompressBufferFailed = 'Decompress buffer failed. CompAlg = %d, InSize = %d, OutSize = %d';
  ErrorLDecompressBufferFailedInvalidSize = 'Decompress buffer failed. UncompSize = %d, Header.UncompSize = %d';
  ErrorLDecompressBufferFailedInvalidCRC = 'Decompress buffer failed. CheckSum = %d, Header.Crc32 = %d';
  ErrorLCannotReadFromStreamInvalidReadSize = 'Cannot read from stream. ReadSize = %d';
  ErrorLInvalidStreamSize = 'Invalid stream size = %d. Should be = %d';
  ErrorLInvalidExtensionSize = 'Invalid extension size. NewSize = %d, UncompressedSize = %d, ExtensionSize = %d';
  ErrorLCannotCreateFile = 'Cannot create file. FileName = %s';
  ErrorLCannotOpenFile = 'Cannot open file. FileName = %s, Mode = %d';
  ErrorLBLOBFieldAlreadyOpened = 'BLOB field already opened. FieldNo = %d, FieldName = %s';
  ErrorLCannotWriteToReadOnlyStream = 'Cannot write to read only stream';
  ErrorLInvalidRecordCount = 'Invalid record count = %d. Limit is %d';
  ErrorLUpdateRecordProhibited = 'Cannot update record in temporary mode';
  ErrorLDeleteRecordProhibited = 'Cannot delete record in temporary mode';
  ErrorLCancelProhibited = 'Cannot cancel operation in temporary mode';
  ErrorLInvalidSignature = 'Invalid file format. Found signature: ''%s'', expected: ''%s''';
  ErrorLInvalidVersion = 'Invalid version number = %f. Should be <= %f';
  ErrorLImportTableCannotCopyData ='Error importing table. Cannot copy data due to error: %s' + #13#10;
  ErrorLImportTableCannotCreateTable = 'Error importing table. Cannot create table due to error: %s' + #13#10;
  ErrorLExportTableCannotCreateTable = 'Error exporting table. Cannot create table due to error: %s' + #13#10;
  ErrorLExportTableCannotOpenTable = 'Error exporting table. Cannot open destination table due to error: %s' + #13#10;
  ErrorLExportTableCannotCopyData ='Error exporting table. Cannot copy data due to error: %s' + #13#10;
  ErrorLCopyTableInvalidFieldValue = 'Error copying table "%s". Record #%d, field ''%s'' was copied with Null value due to error: %s' + #13#10;
  ErrorLCopyTablePostFailed = 'Error copying table "%s". Record #%d was not imported due to error: %s' + #13#10;
  ErrorLNotExpressionPassed = 'Non-expression object passed as expression';
  ErrorLInvalidScanConditionNo = 'Invalid condition number = %d, count = %d';
  ErrorLCannotFindRecordPositionInIndex = 'Cannot find record position in index %d, RecordID = %d %d';
  ErrorLInvalidScanConditionNoIndex = 'Invalid scan condition - indexID = %d, count = %d';
  ErrorLRestructureTableCannotCreateTable = 'Error restructuring table. Cannot create table due to error: %s' + #13#10;
  ErrorLRestructureTableCannotCopyData = 'Error restructuring table. Cannot copy data due to error: %s' + #13#10;
  ErrorLRestructureTableCannotDeleteTable = 'Error restructuring table. Cannot delete table due to error: %s' + #13#10;
  ErrorLRestructureTableCannotRenameTable = 'Error restructuring table. Cannot rename table due to error: %s' + #13#10;
  ErrorLDatabaseFileIsNotOpened = 'Error - database file is not opened.';
  ErrorLDatabaseFileIsInUse = 'Error - database file %s is in use.';
  ErrorLCannotAddTablePFSPage = 'Error - cannot add table PFS page. PageCount = %d, No = %d, Item[No].PageNo = %d, PageNo = %d';
  ErrorLCannotFindTablePFSPage = 'Error - cannot find table PFS page. PageCount = %d, PageNo = %d';
  ErrorLCannotUnlockTableLocksFile = 'Error - cannot unlock table locks file';
  ErrorLCannotReadFromTableMostUpdatedFile = 'Cannot read from table most updated file. %s';
  ErrorLCannotWriteToTableMostUpdatedFile = 'Cannot write to table most updated file. %s';
  ErrorLNotSupportedFieldType = 'Field type not supported in this version of Delphi/C++Builder. Use higher version of Delphi/C++Builder or change field data type. Table name: "%s", field name: "%s"';
  ErrorLCannotRepairTablePagesIndexForLargeRecordsTable = 'Cannot repair page index for large table. Table name: "%s"';

