E2492 Properties may only be assigned using a simple statement, e.g. \"prop = value;\"
//---------------------------------------------------------------------------#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
MessageBeep(MB_OK) ;
if (Label1->Caption="Hello, World!")
Label1->Caption="世界 你好!";
else
Label1->Caption ="Hello, World!";
}
//---------------------------------------------------------------------------
为什么会出现E2492 Properties may only be assigned using a simple statement, e.g. \"prop = value;\"
这样的错误啊????还有怎么看自己发过的帖子???
--------------------编程问答-------------------- 登录后选 ‘论坛”进入社区中心
选"我的小区"
再选"我发布的贴子 "
--------------------编程问答-------------------- 是呀,这是怎么回事呀??? --------------------编程问答-------------------- 知道了,把=改为==就行了
补充:VB , 非技术类