OO Starter

From: Kalzor (kal.no.SP.AM.25_at_hotmail.com)
Date: 05/24/04

  • Next message: Nicholas Sherlock: "Re: DelphiX TDXImageList"
    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


  • Next message: Nicholas Sherlock: "Re: DelphiX TDXImageList"

    Relevant Pages

    • Re: Strange value
      ... I did this on purpose to see what would ... first object that gets created receives an assumed value of zero, ... would have thought that the second object would also get zero. ... when I compile them or how often I compile them, ...
      (comp.lang.cpp)
    • Re: OO Starter
      ... You mustn't use Java naming conventions in Delphi. ... 'Robot.pas' or any other unique identifier. ... > I've just sucessfully created and used my first object. ... compile it and then put a reference to it in the 'uses' as we would ...
      (alt.comp.lang.borland-delphi)