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 |
> |
ibxeCharacterSetExists, |
246 |
> |
ibxeUnknownUserCharSet |
247 |
|
); |
248 |
|
|
249 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
249 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
250 |
|
|
251 |
|
resourcestring |
252 |
|
{ generic strings used in code } |
439 |
|
SInvalidVariantType = 'Invalid variant type'; |
440 |
|
SServiceRunning = 'Cannot start a new service while an existing service is running'; |
441 |
|
SUniqueRelationReqd = 'All Output Fields must derived from the same table'; |
442 |
+ |
SInterfaceNotSupported = 'Interface not supported; Guid %s not found'; |
443 |
+ |
SCharacterSetExists = 'Character set "%s" is already defined'; |
444 |
+ |
SUnknownUserCharSet = 'Unknown user character set "%s"'; |
445 |
|
|
446 |
|
const |
447 |
|
IBErrorMessages: array[TIBClientError] of string = ( |
604 |
|
SInvalidParamCount, |
605 |
|
SInvalidVariantType, |
606 |
|
SServiceRunning, |
607 |
< |
SUniqueRelationReqd |
607 |
> |
SUniqueRelationReqd, |
608 |
> |
SInterfaceNotSupported, |
609 |
> |
SCharacterSetExists, |
610 |
> |
SUnknownUserCharSet |
611 |
|
); |
612 |
|
|
613 |
< |
function GetErrorMessage(ErrMess: TIBClientError): string; |
613 |
> |
function GetErrorMessage(ErrMess: TIBClientError): AnsiString; |
614 |
|
begin |
615 |
|
Result := IBErrorMessages[ErrMess]; |
616 |
|
end; |