OO Starter
From: Kalzor (kal.no.SP.AM.25_at_hotmail.com)
Date: 05/24/04
- Previous message: Svein M. Bringsli: "DelphiX TDXImageList"
- Next in thread: Moses Palmér: "Re: OO Starter"
- Reply: Moses Palmér: "Re: OO Starter"
- Reply: Maarten Wiltink: "Re: OO Starter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 May 2004 20:20:07 +0100
I've just sucessfully created and used my first object.
I put all the code in the code for the application form and it all works
fine, but now I'm trying to take that code out into it's seperate class
file, compile it and then put a reference to it in the 'uses' as we would
when using any class.
However, I can#t seem to compile the file!!!
my class name is called TRobot
I'm saving it in TRobot.pas and using install package to compile it, but all
i'm getting is errors saying
'unit recursively uses itself' if i call the unit the same as the filename
or
'unit identifier 'TRobot' does not mach file name'
this seems a bit catch 22 to me... buggered if i have it the same or
different file name?!?!
Help!
K
- Previous message: Svein M. Bringsli: "DelphiX TDXImageList"
- Next in thread: Moses Palmér: "Re: OO Starter"
- Reply: Moses Palmér: "Re: OO Starter"
- Reply: Maarten Wiltink: "Re: OO Starter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|