A compile problem or a conceptual one

From: Stark (starkwedder_at_virgilio.it)
Date: 11/27/03

Date: Thu, 27 Nov 2003 22:05:40 GMT

I moved a proc from one module to another and I cannot compile it anymore. I
don't understand why. It fails with the message "Undefined identifier Self"
in the following statement:
      NewItem := TMenuItem.Create(Self);
The unit where the proc used to be was a form with a TMenu as a component,
while the unit where the proc was moved is a unit with no form (where I keep
more general routines), so I suspect that the problem has something to do
with this.