主题:在制作一个管理系统时出现的问题
#include <vcl.h>
#pragma hdrstop
#include "Unit4.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm4 *Form4;
//---------------------------------------------------------------------------
__fastcall TForm4::TForm4(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm4::Button1Click(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm4::Button2Click(TObject *Sender)
{
ADOTable1->Close();
ADOTable1->IndexFieldNames=ComboBoxEx1->Text;
ADOTable1->Open();
if (!ADOTable1->FindKey(TVarRec(Edit1->Text),0))
ShowMessage("找到相关资料");
else
ShowMessage("没有要查的资料");
}
提示出错:[C++ Error] Unit4.cpp(29): E2316 'FindKey' is not a member of 'TADOTable'
这是本人在制作一个管理系统时出现的问题,请教各位高手,怎么解决这个问题?
#pragma hdrstop
#include "Unit4.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm4 *Form4;
//---------------------------------------------------------------------------
__fastcall TForm4::TForm4(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm4::Button1Click(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm4::Button2Click(TObject *Sender)
{
ADOTable1->Close();
ADOTable1->IndexFieldNames=ComboBoxEx1->Text;
ADOTable1->Open();
if (!ADOTable1->FindKey(TVarRec(Edit1->Text),0))
ShowMessage("找到相关资料");
else
ShowMessage("没有要查的资料");
}
提示出错:[C++ Error] Unit4.cpp(29): E2316 'FindKey' is not a member of 'TADOTable'
这是本人在制作一个管理系统时出现的问题,请教各位高手,怎么解决这个问题?