Class TfrxDBDataset not found.

Hello. From time to time this message appeared to me to run my application.

Class TfrxDBDataset not found.

What happen?

Jose

Comments

  • gpigpi
    edited 2:10AM
    Show your uses list
  • edited 2:10AM
    Hi Jose

    I'm having a similar problem adding a TfrxUserDataSet by code. I have a TfrxUserDataSet on the form so it is installed and can be found but still won't work...

    If I find a solution to my problem there will be a similar fix for yours.

  • gpigpi
    edited 2:10AM
    Try to compile FRDemo. Did you get same result?
  • edited 2:10AM

    Try adding a RegisterClass(TfrxDBDataset) to the Create() of your Delphi application... let me know if this works for you. >
  • I found a possible cause:

    If the implementation section of my code is like this:

    implementation

    uses System.TypInfo, System.IOUtils, System.StrUtils, System.Types, System.Variants, System.DateUtils,
    FMX.Dialogs, FMX.Forms;

    {%CLASSGROUP 'FMX.Controls.TControl'}

    {$R *.dfm}

    The form editor shows the error "Class TfrxDBDataset not found." and eliminates from the visual form all the components.

    Instead if I change this part, to show like the next block, all works well:

    implementation

    {%CLASSGROUP 'FMX.Controls.TControl'}

    {$R *.dfm}

    uses System.TypInfo, System.IOUtils, System.StrUtils, System.Types, System.Variants, System.DateUtils,
    FMX.Dialogs, FMX.Forms;

Leave a Comment