Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't believe nobody has answer to this silly problem.

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA
I need to call a procedure declared in the public area of a first form - from a second form. But am not having any luck.

My thread102-914655 refers.

Anybody?

Thanks in advance.
 
Your line which calls frmGL.DefineGLTable needs to be within a method, e.g.

Code:
var
  frmGenAccs: TfrmGenAccs;

implementation

uses GL;

{$R *.dfm}

procedure TfrmGenAccs.MyMethod;
begin
  frmGL.DefineGLTable;  // Get exceptions to this as below.
end;

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top