Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
unit MyForm[b]Two[/b];
interface
uses
Windows, Messages, etc. etc.;
type
TFormMyForm[b]Two[/b] = class(TForm)
DBText2: TDBText;
Etc.
Etc.
procedure BlahBlah1;
procedure BlahBlah2;
private
{ Private declarations }
procedure BlahBlah3;
public
{ Public declarations }
end;
var
frmTwo: TfrmTwo;
implementation
uses Stuff;
{$R *.dfm}
[b]ABC[/b];//I need this to work here from MyForm[b]One[/b] below.
unit MyForm[b]One[/b];
interface
uses
Windows, Messages, etc. etc.;
type
TFormMyForm[b]One[/b] = class(TForm)
DBText2: TDBText;
Etc. Etc
procedure BlahBlah1;
procedure BlahBlah2;
private
{ Private declarations }
procedure BlahBlah3;
[b]procedure ABC;[/b]
public
{ Public declarations }
end;
var
frmOne: TfrmOne;
implementation
uses Stuff;
{$R *.dfm}
[b]TFormMyFormOne.Procedure.ABC[/b];
begin
Do wonderful things;
end;
[b]ABC[/b] //Works perfectly here.
unit MyFormTwo;
interface
uses
Windows, Messages, etc. etc.;
type
TFormMyFormTwo = class(TForm)
DBText2: TDBText;
Etc.
Etc.
procedure BlahBlah1;
procedure BlahBlah2;
private
{ Private declarations }
procedure BlahBlah3;
public
{ Public declarations }
end;
var
frmTwo: TfrmTwo;
implementation
uses [b]MyFormOne[/b];
{$R *.dfm}
[b]TFormMyFormOne.[/b]ABC;//I need this to work here from MyFormOne below.
unit MyFormTwo;
interface
uses
Windows, Messages, etc. etc.;
type
TFormMyFormTwo = class(TForm)
DBText2: TDBText;
Etc.
Etc.
procedure BlahBlah1;
procedure BlahBlah2;
private
{ Private declarations }
procedure BlahBlah3;
public
{ Public declarations }
end;
var
frmTwo: TfrmTwo; [red] // should be TFormMyFormTwo[/red]
implementation
uses Stuff[red],MyFormOne[/red];
{$R *.dfm}
[red]frmOne.[/red]ABC;//I need this to work here from MyFormOne below.
unit MyFormOne;
interface
uses
Windows, Messages, etc. etc.;
type
TFormMyFormOne = class(TForm)
DBText2: TDBText;
Etc. Etc
procedure BlahBlah1;
procedure BlahBlah2;
private
{ Private declarations }
procedure BlahBlah3;
[red]//[/red]procedure ABC;[red] should be public[/red]
public
{ Public declarations }
[red]procedure ABC; // called from other units[/red]
end;
var
[red] // [/red] frmOne: TfrmOne;[red]
frmOne:TFormMyFormOne;[/red]
implementation
uses Stuff;
{$R *.dfm}
TFormMyFormOne.Procedure.ABC;
begin
Do wonderful things;
end;
ABC //Works perfectly here.
frmOne: TfrmOne;
frmOne: TfrmOne;
public
DefineGLTable;
var
frmGL: TfrmGL;
implementation
uses GenAccs;
{$R *.dfm}
procedure TfrmGL.DefineGLTable;
begin
Does things
end;
[b]DefineGLTable;[/b] //Works perfectly.
var
frmGenAccs: TfrmGenAccs;
implementation
[b]uses GL;[/b]
{$R *.dfm}
[b]GL.DefineGLTable;[/b] // Get exceptions to this as below.
frmGL.DefineGLTable; // Get exceptions to this as below.
[b]TFormMyFormOne.Procedure.ABC;[/b]
begin
Do wonderful things;
end;
[b]ABC[/b] //Works perfectly here.