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 |
|
|
240 |
|
ibxeInvalidParamCount, |
241 |
|
ibxeInvalidVariantType, |
242 |
|
ibxeServiceRunning, |
243 |
< |
ibxeUniqueRelationReqd |
243 |
> |
ibxeUniqueRelationReqd, |
244 |
> |
ibxeInterfaceNotSupported |
245 |
|
); |
246 |
|
|
247 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
247 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
248 |
|
|
249 |
|
resourcestring |
250 |
|
{ generic strings used in code } |
437 |
|
SInvalidVariantType = 'Invalid variant type'; |
438 |
|
SServiceRunning = 'Cannot start a new service while an existing service is running'; |
439 |
|
SUniqueRelationReqd = 'All Output Fields must derived from the same table'; |
440 |
+ |
SInterfaceNotSupported = 'Interface not supported; Guid %s not found'; |
441 |
|
|
442 |
|
const |
443 |
|
IBErrorMessages: array[TIBClientError] of string = ( |
600 |
|
SInvalidParamCount, |
601 |
|
SInvalidVariantType, |
602 |
|
SServiceRunning, |
603 |
< |
SUniqueRelationReqd |
603 |
> |
SUniqueRelationReqd, |
604 |
> |
SInterfaceNotSupported |
605 |
|
); |
606 |
|
|
607 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
607 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
608 |
|
begin |
609 |
|
Result := IBErrorMessages[ErrMess]; |
610 |
|
end; |