ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/client/FBMessages.pas
(Generate patch)

Comparing ibx/trunk/fbintf/client/FBMessages.pas (file contents):
Revision 47 by tony, Mon Jan 9 15:31:51 2017 UTC vs.
Revision 217 by tony, Fri Mar 16 10:27:26 2018 UTC

# Line 60 | Line 60
60   {                                                                        }
61   {************************************************************************}
62   unit FBMessages;
63 + {$IFDEF MSWINDOWS}
64 + {$DEFINE WINDOWS}
65 + {$ENDIF}
66  
67   {$IFDEF FPC}
68 < {$mode objfpc}{$H+}
68 > {$mode delphi}
69   {$codepage UTF8}
70   {$ENDIF}
71  
# Line 237 | Line 240 | type
240        ibxeInvalidParamCount,
241        ibxeInvalidVariantType,
242        ibxeServiceRunning,
243 <      ibxeUniqueRelationReqd
243 >      ibxeUniqueRelationReqd,
244 >      ibxeInterfaceNotSupported,
245 >      ibxeCharacterSetExists,
246 >      ibxeUnknownUserCharSet,
247 >      ibxeUninitializedInputParameter,
248 >      ibxeNegativeGenerator,
249 >      ibxeServiceUnavailable,
250 >      ibxeBadConnectString,
251 >      ibxeServiceNotStarted,
252 >      ibxeNotRequiredDataSetSource,
253 >      ibxeNoLimboTransactionInsert,
254 >      ibxeDatabaseNotConnected,
255 >      ibxMultiThreadRequired
256        );
257  
258 < function GetErrorMessage(ErrMess: TIBClientError): string;
258 > function GetErrorMessage(ErrMess: TIBClientError): AnsiString;
259  
260   resourcestring
261    { generic strings used in code }
# Line 373 | Line 388 | resourcestring
388    SServerNameMissing = 'Server Name Missing';
389    SQueryParamsError = 'Query Parameters missing or incorrect';
390    SStartParamsError = 'start Parameters missing or incorrect';
391 <  SOutputParsingError = 'Unexpected Output buffer value (%d)';
391 >  SOutputParsingError = 'Unexpected Output buffer value (%d) - %s';
392    SUseSpecificProcedures = 'Generic ServiceStart not applicable: Use Specific Procedures to set configuration params';
393    SSQLMonitorAlreadyPresent = 'SQL Monitor Instance is already present';
394    SDelphiException = 'DelphiException %s';
# Line 433 | Line 448 | resourcestring
448    SInvalidVariantType = 'Invalid variant type';
449    SServiceRunning = 'Cannot start a new service while an existing service is running';
450    SUniqueRelationReqd = 'All Output Fields must derived from the same table';
451 +  SInterfaceNotSupported = 'Interface not supported; Guid %s not found';
452 +  SCharacterSetExists = 'Character set "%s" is already defined';
453 +  SUnknownUserCharSet = 'Unknown user character set "%s"';
454 +  SUninitializedInputParameter = 'SQL Param No. %d (%s) is uninitialised';
455 +  SNegativeGenerator = 'A Generator Increment cannot be negative';
456 +  SServiceUnavailable = 'Request Service is not available';
457 +  SBadConnectString = 'Parse Error in Connect String';
458 +  SServiceNotStarted = 'Cannot Query running service until the service has been started';
459 +  SNotRequiredDataSetSource = 'Object of class %s is not a valid dataset source';
460 +  SNoLimboTransactionInsert = 'You cannot add to a Limbo Transaction list';
461 +  SDatabaseNotConnected = 'Cannot connect using an unattached database';
462 +  SMultiThreadRequired = 'Multi-threading required for %s but not enabled. Please recompile with multi-threading support enabled. '+
463 +                         'Hint: you probably need to add -dUseCThreads to the Custom Options.';
464  
465   const
466    IBErrorMessages: array[TIBClientError] of string = (
# Line 595 | Line 623 | const
623      SInvalidParamCount,
624      SInvalidVariantType,
625      SServiceRunning,
626 <    SUniqueRelationReqd
626 >    SUniqueRelationReqd,
627 >    SInterfaceNotSupported,
628 >    SCharacterSetExists,
629 >    SUnknownUserCharSet,
630 >    SUninitializedInputParameter,
631 >    SNegativeGenerator,
632 >    SServiceUnavailable,
633 >    SBadConnectString,
634 >    SServiceNotStarted,
635 >    SNotRequiredDataSetSource,
636 >    SNoLimboTransactionInsert,
637 >    SDatabaseNotConnected,
638 >    SMultiThreadRequired
639    );
640  
641 < function GetErrorMessage(ErrMess: TIBClientError): string;
641 > function GetErrorMessage(ErrMess: TIBClientError): AnsiString;
642   begin
643    Result := IBErrorMessages[ErrMess];
644   end;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines