title: Delphi 10.2 - Cannot resolve unit name 'Controls' and 'Dialogs'
body: <p>I'm getting series of Undeclared Indentifier type error. Like: Undeclared identifier 'MessageDlg' at line 1300. </p>
  
  <p>I thing that is because Delphi doesn't recognise 'Controls' and 'Dialogs' classes.</p>
  
  <p>But i declared in uses clauses:</p>
  
  <pre><code>    uses
      Windows, Messages, SysUtils, Variants, Classes, Controls, Dialogs,
      ADODB, DateUtils, DB, Math, SqlExpr;
      //Cannot resolve unit name 'Controls'
      //Cannot resolve unit name 'Dialogs'
      .
      .
      .
      Procedure Insert_Data_BD();
      var
        j: Integer;
        IDOffer: Integer;
        Hour: String;
        adocOpen: TADOConnection;
        adospSELECT, adospINPUTX, adospINPUTY,
        adospINPUTZ, adospINPUTW, adospOUTPUTR : 
        TADOStoredProc;
        adoQuery: TADOQuery;
        blnUpdate: Boolean;
        strTabela: ShortString;
     begin
        Try
          ShortDateFormat := 'dd/mm/yy'; //Undeclared Identifier 'ShortDateFormat'
          ShortTimeFormat := 'hh:mm:ss'; //Undeclared Identifier 'ShortTimeFormat'
          DateTimeToString(Hour, 't', Time);
          blnUpdate := False;
     .
     .
     .
         MessageDlg('Error', mtInformation, [mbOK], 0); 
         // Undeclared identifier 'MessageDlg' 
         // Undeclared identifier 'mtInformation'
         // Undeclared identifier 'mbOK'
     end;
  </code></pre>
  
  <p>Someone know what could be happening?</p>
  
  <p>Thanks in advance!</p>