Link to home
Start Free TrialLog in
Avatar of drnadeem
drnadeem

asked on

Procedures in a different unit

Dear all,
I have created a newunit using File|New unit and written some of my useful procedures in the unit. However when I wanted to use those procedures, I get error message " Undeclared Identifier".

I have included this unit in the Implentation section of my project. So what am I doing wrong ?

Thanks
Nadeem
Avatar of kretzschmar
kretzschmar
Flag of Germany image

hi drnedam,

in your unit, is there something in your interfacepart like this sample:

unit UnitX;
interface

Procedure WhatEver;

implementation

Procedure WhatEver;
Begin
  SomeCode;
end;

end.

if not, then copy the procedure/function lines from your implementationart in the interfacepart.

meikl
ASKER CERTIFIED SOLUTION
Avatar of Dmitry_
Dmitry_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nrico
nrico

Ummmm... Dmitry, that's exactly what kretzschmar had _already_ suggested.
Don't try to run off with the points.