[lazarus] calling a procedure from another pas file

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Dec 27 08:15:38 EST 2003


On Sat, 27 Dec 2003 13:43:44 +0100  LeVA <leva at az.isten.hu> wrote:

> LeVA wrote:
> > Hi!
> > 
> > First of all, Merry Christmas to everyone :)
> > 
> > Now my question :)
> > 
> > I have a procedure (let's say test_proced) in my main.pas file, and I 
> > can call it from there, and it works. I have another pas file, called 
> > test.pas. I want to call the test_proced procedure from that test.pas. I
> > 
> > have added this under the test.pas's implementation section:
> > 
> > uses main;
> > 
> > Now I can use main.pas's variables, but still can not call that
> > procedure.
> > 
> > How can I do this?
> > 
> > Thanks!
> > 
> > Daniel
> 
> Should I explain more precisely what is my problem, or this is not 
> possible with lazarus/fpc?

Almost all units call procs in other units. Plz give more details.


Mattias






More information about the Lazarus mailing list