Posted on 2009-02-10
Last Modified: 2013-11-23

I used to use in my applications the RxLib components (ToolEdit unit).
Now I'm using the RxLib2007 version (RxToolEdit unit).
I changed the uses clause of my form to use RxToolEdit instead of ToolEdit.
On this form I have a TDateEdit that is declared on the rxToolEdit unit.
But when I save my form's unit, Delphi automatically adds the ToolEdit on the uses clause and don't compile the application because the ToolEdit.dcu is not in my Library Path anymore.
Now I only have the rxToolEdit.dcu in my Library Path.

Why Delphi is inserting automatically this wrong unit on the uses clause?



  SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,

  Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, Mask, ComCtrls, Db, Halcn6DB,

  StTree, MaskUtils, DBClient,  IBODataset, RxToolEdit {this is the correct unit},

  IB_Components, ToolEdit {this is being added by Delphi automatically};




  TFormCalcularReST = class(TForm)

    StatusBar1: TStatusBar;

    Panel1: TPanel;

    Label2: TLabel;

    Label3: TLabel;

    Label4: TLabel;

    Label6: TLabel;

    Label7: TLabel;

    LabelDTInic: TLabel;

    Label9: TLabel;

    LabelDTFim: TLabel;

    LabelArquivo: TLabel;

    LabelFinalidade: TLabel;

    Label13: TLabel;

    LabelConvenio: TLabel;

    Label15: TLabel;

    LabelNatOpe: TLabel;

    Label17: TLabel;

    LabelCNPJ: TLabel;

    Label5: TLabel;

    LabelIE: TLabel;

    LabelRazSocial: TLabel;

    LabelMunicipioUF: TLabel;

    ButtonOK: TButton;

    ButtonFechar: TButton;

    RadioGroupECF: TRadioGroup;

    GroupBoxPrint: TGroupBox;

    ChKBoxPrintMovDiario: TCheckBox;

    ChkBoxPrintResGeral: TCheckBox;

    CheckBoxInc: TCheckBox;

    Label1: TLabel;

    DateEditEstInic: TDateEdit;

    HDTemp: THalcyonDataSet;

    SpeedButtonLocalizar: TSpeedButton;

    HDRes: THalcyonDataSet;

    CheckBoxDistFrequencia: TCheckBox;

    Label8: TLabel;

    Label10: TLabel;

    DateEditPerInic: TDateEdit;

    DateEditPerFim: TDateEdit;

    CheckBoxPrintProdRest: TCheckBox;

    LabelQtdProd: TLabel;

    HDNFS: THalcyonDataSet;

    IBOTableNF50: TIBOTable;

    IB_CursorPRCalc: TIB_Cursor;

    IB_CursorTabNF: TIB_Cursor;

    IB_CursorTabIE: TIB_Cursor;

    procedure FormCreate(Sender: TObject);

    procedure FormShow(Sender: TObject);

    procedure ButtonFecharClick(Sender: TObject);

    procedure ButtonOKClick(Sender: TObject);

    procedure FormClose(Sender: TObject; var Action: TCloseAction);

    procedure FormActivate(Sender: TObject);

    procedure DateEditEstInicExit(Sender: TObject);

    procedure SpeedButtonLocalizarClick(Sender: TObject);

    procedure DateEditPerInicExit(Sender: TObject);

    procedure DateEditPerFimExit(Sender: TObject);


    sTempDBF, sTempCDX, sResDBF, sResCDX, sNFSDBF, sNFSCDX : string;

    MyListaDataEstoque : TStringList;

    QtdIE, QtdNF, QtdSelPR, n50, n54, n88 : integer;

    bInitReport, bIsTabIE, bIsTabNF, bRestituiST, bRestituiOP : boolean;

    procedure UmMyClose(var Message: TMessage); message WM_MYCLOSE;

    procedure CriarTempFile;

    procedure ContaReg60;

    procedure CalcRessST;

    procedure Grava54Sai;

    procedure Grava88(const s : string);

    procedure Grava60D;

    procedure Grava60I;

    procedure Grava60R;

    procedure CalcOne(const Produto, descricao,unidade : String;

                      const DTEstoque : TDateTime);

    function ChkIsRessarcivel : boolean;

    procedure ResumoGeral;

    function VerifyCFOP : string;

    procedure ExecDFCNPJ;

    procedure ExecDFUFCFOP;

    procedure ExecDFUF;

    procedure ExecDFCFOP;

    procedure ExecSaidaSemDestaque;

    Function IsCNPJGoverno(const cnpj : string) : boolean;




  FormCalcularReST : TFormCalcularReST;


Open in new window

Question by:danival_lucas
    LVL 9

    Expert Comment

    do you have a string "RX Library Controls and Tools" in "Component->Install packages"?
    What's a path of installed "RX Library Controls and Tools" package?

    Accepted Solution


    I have uninstalled delphi and all components and installed all again.
    This solve the problem.
    Thanks everybody.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now