Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

New user question

edited December 2001 in General
Just got my RB Ent. and it looks very impressive. My Compliments to DM.

Got a question. As I'm looking at the demos to get some ideas, I came
across RBuilder\Demos\Reports\Demp.dpr project that has about 154
programs in it to demonstrate the product. The form name is retrieved
from a file and the main program creates the form at runtime. My
question is, where are the first 1-10 forms in the project or that sub
directory? I like to look at dm1 - dm10 but I can't find them, however
at runtime they show up. What am I missing?

Thanks!

--
Best regards,
..Ben Hayat
Micro Intelligence Corp.
MicNet@IX.Netcom.Com

Comments

  • edited December 2001
    Hell Ben,


    just have a look at dmMain, function TfrmDMMain.CreateForm(aLevel: Integer):
    TdmCustomForm;

    Here you'll find the place where the class names are generated.

    example:
    click on 1
    - 1: aLevel := 81;
    - ...
    classname := 'Tfrm0081' - srcFile: dm0081.pas

    regards,

    Ralf
  • edited December 2001
    I know that, but my question is I don't see dm1 through dm10 pascal
    files anywhere in the project. I'm looking for dm2.frm dm2.pas

    --
    Best regards,
    ..Ben Hayat
    Micro Intelligence Corp.
    MicNet@IX.Netcom.Com
  • edited December 2001
    Hello Ben,


    There are no dm1 to dm10 files.
    If you choose examples 1-10 (overview) following happens:
    Click example 1

    At TfrmDMMain.PrintReport the Level is Assigned from Field Value.
    it's 1
    after that the form (the *.pas you're looking for) file is located at
    TfrmDMMain.CreateForm:
    If 1 was choosen Level = 81;
    so the classname is 'Tfrm' + '00' + '81'
    the source is dm0081.pas if you click example 1 at 1-10 overview

    if you click
    2 -> 61
    3 -> 71
    4 -> 51
    and so on....

    For referencing these classes have a look at USES / RegisterClasses

    HIH
    Ralf
This discussion has been closed.