Compilation error in Alpha DB

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #36310
    Kujo
    Participant

    Hello,

    the compilation of AlphaDB 9.16 in RAD Studio XE2, fails due to the following error located in the sDBNavigator.pas file:

    [DCC Error] sDBNavigator.pas(182): E2003 Undeclared identifier: 'UseColoredGlyphs'

    [DCC Error] sDBNavigator.pas(182): E2015 Operator not applicable to this operand type

    [DCC Fatal Error] AlphaDBDelphiXE2.dpk(45): F2063 Could not compile used unit 'sDBNavigator.pas'

    The piece of interested code is the following:

    Code:
    {$IFDEF DELPHI_XE2}
    if TsDBNavigator(Btn.Parent).UseColoredGlyphs and (FindResource(hInstance, BtnTypeNames[aBtn], RT_BITMAP) <> 0) then begin
    ResBitmap.LoadFromResourceName(hInstance, BtnTypeNames[aBtn]);
    ResBitmap.Width := ResBitmap.Width div 2; // Remove “disabled” glyph
    end
    else
    if not (aBtn in [nbApplyUpdates, nbCancelUpdates]) then
    {$ENDIF}

    Thanks.

    #52654
    Kujo
    Participant

    Hello,

    can anyone help me?

    Thanks

    #52658
    Support
    Keymaster

    Hello!

    I'm sorry for a delay, please try attached file.

    #52675
    Kujo
    Participant

    Hello,

    problem solved, thank you.

    Now there are some warnings during the compilation:

    Code:
    [DCC Warning] sDBDateEdit.pas(240): W1000 Symbol 'DateSeparator' is deprecated: 'Use FormatSettings.DateSeparator'
    [DCC Warning] sDBCalcEdit.pas(141): W1000 Symbol 'DecimalSeparator' is deprecated: 'Use FormatSettings.DecimalSeparator'
    [DCC Warning] sDBCalcEdit.pas(147): W1000 Symbol 'DecimalSeparator' is deprecated: 'Use FormatSettings.DecimalSeparator'

    Why you use

    Code:
    {$IFDEF DELPHI_XE3}FormatSettings.{$ENDIF}DateSeparator
    {$IFDEF DELPHI_XE3}FormatSettings.{$ENDIF}DecimalSeparator

    even if FormatSettings is supported also in Delphi XE2?

    Regards

    #52676
    Support
    Keymaster

    Just I didn't know that XE2 also has the FormatSettings. It will be changed in the next release.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.