artem_niko Posted April 28, 2022 Share Posted April 28, 2022 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? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted May 10, 2022 Author Share Posted May 10, 2022 up... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.