dbconst.pp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt, member of the
  5. Free Pascal development team
  6. Constants used for displaying messages in DB units
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit dbconst;
  14. Interface
  15. Const
  16. SActiveDataset = 'Operation cannot be performed on an active dataset';
  17. SCantSetAutoIncFields = 'AutoInc Fields are read-only';
  18. SConnected = 'Operation cannot be performed on an connected database';
  19. SDatasetReadOnly = 'Dataset is read-only.';
  20. SDatasetRegistered = 'Dataset already registered : "%s"';
  21. SDuplicateFieldName = 'Duplicate fieldname : "%s"';
  22. SErrAssTransaction = 'Cannot assign transaction while old transaction active!';
  23. SErrColumnNotFound = 'Column "%s" not found.';
  24. SErrDatabasenAssigned = 'Database not assigned!';
  25. SErrNoDatabaseAvailable = 'Invalid operation: Not attached to database';
  26. SErrNoSelectStatement = 'Cannot open a non-select statement';
  27. SErrNoStatement = 'SQL statement not set';
  28. SErrTransactionnSet = 'Transaction not set';
  29. SFieldNotFound = 'Field not found : "%s"';
  30. SInactiveDataset = 'Operation cannot be performed on an inactive dataset';
  31. SInvalidDisplayValues = '"%s" are not valid boolean displayvalues';
  32. SInvalidFieldKind = '%s : invalid field kind : ';
  33. SInvalidFieldSize = 'Invalid field size : %d';
  34. SInvalidTypeConversion = 'Invalid type conversion to %s in field %s';
  35. SNeedField = 'Field %s is required, but not supplied.';
  36. SNeedFieldName = 'Field needs a name';
  37. SNoDataset = 'No dataset asssigned for field : "%s"';
  38. SNoDatasetRegistered = 'No such dataset registered : "%s"';
  39. SNoDatasets = 'No datasets are attached to the database';
  40. SNoSuchRecord = 'Could not find the requested record.';
  41. SNoTransactionRegistered = 'No such transaction registered : "%s"';
  42. SNoTransactions = 'No transactions are attached to the database';
  43. SNotABoolean = '"%s" is not a valid boolean';
  44. SNotAFloat = '"%s" is not a valid float';
  45. SNotAninteger = '"%s" is not a valid integer';
  46. SNotConnected = 'Operation cannot be performed on an disconnected database';
  47. SNotInEditState = 'Operation not allowed, dataset "%s" is not in an edit state.';
  48. SRangeError = '%f is not between %f and %f for %s';
  49. SReadOnlyField = 'Field %s cannot be modified, it is read-only.';
  50. STransactionRegistered = 'Transaction already registered : "%s"';
  51. SUniDirectional = 'Operation cannot be performed on an unidirectional dataset';
  52. SUnknownField = 'No field named "%s" was found in dataset "%s"';
  53. SUnknownFieldType = 'Unknown field type : %s';
  54. Implementation
  55. end.
  56. {
  57. $Log$
  58. Revision 1.2 2004-10-16 09:20:25 michael
  59. + Moved resourcestrings to dbconst
  60. Revision 1.1 2004/10/10 14:45:51 michael
  61. + Use of dbconst for resource strings
  62. }