Jump to content

Interaction of forms and frames in BPL


artem_niko

Recommended Posts

Good evening!
A simple situation: I create a BPL package that has UniFrame as the main one.
I also need to create the Nth number of Free forms (UniForm1, UniForm2, etc.) so that I can access them from my UniFrame, pass data to forms and back, i.e. pass data from my UniForm1, UniForm2 etc. back to UniFrame.
The problem is that I can't write code like this in a new form:

unit UnitActionForTable;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics,
  Controls, Forms, uniGUITypes, uniGUIAbstractClasses,
  uniGUIClasses, uniGUIForm;

type
  TF_ActionForTable = class(TUniForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

  function F_ActionForTable: TF_ActionForTable;

implementation

{$R *.dfm}

uses
  uniGUIApplication,

  UnitG0;

function F_ActionForTable: TF_ActionForTable;
begin
  Result := TF_ActionForTable(UniMainModule.GetFormInstance(TF_ActionForTable));
end;


end.

I can't because this line gives the following error:

 Result := TF_ActionForTable(UniMainModule.GetFormInstance(TF_ActionForTable));

[dcc32 Error] UnitG0.pas(208): E2003 Undeclared identifier: 'F_ActionForTable'

 

Actually, the question itself is: how to implement what I need? Is it possible?

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...