很长一段时间以来,我第一次一直在虚拟机上使用Delphi,目前正在导入JSON。但是,突然之间(毫无疑问,我已经删除或损坏了某些东西)我无法编译该项目。
每次尝试时,我都会收到消息E003未声明的标识符:“ Form1”,然后编辑器将捕捉到程序文件Project1,即Application.CreateForm(TForm1, Form1);行。
我附加了my unit1.pas,它是表单所在的地方,以及看似相关的其他文件。请帮忙!我做了什么/删除了什么?
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Xml.xmldom, Xml.XMLIntf,
Xml.XMLDoc, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, IdSSLOpenSSL,
IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, inifiles,
Vcl.ExtCtrls, Vcl.ComCtrls;
const
GstrAPIKey = 'removed this :)';
type
TForm1 = class(TForm)
Button1: TButton;
XMLDocument1: TXMLDocument;
Memo1: TMemo;
IdHTTP1: TIdHTTP;
IdSSL: TIdSSLIOHandlerSocketOpenSSL;
rgrp_Home: TRadioGroup;
cbx_Report: TComboBox;
cbx_Charts: TComboBox;
sb_Main: TStatusBar;
dt_From: TDateTimePicker;
dt_To: TDateTimePicker;
Edit1: TEdit;
lbl_DF: TLabel;
Label1: …Run Code Online (Sandbox Code Playgroud) delphi ×1