|
void __fastcall TForm3::Music_SeachClick(TObject *Sender)
{
if ((Edit_Music->Text == ""))
{
ShowMessage("검색어를 입력하세요. ");
return;
}
if (Form3->rdoMusic_Index == 0)
{
Query3->SQL->Clear();
Query3->SQL->Add("select * from 잡지목록 where 순번=:Param1");
Query3->ParamByName("Param1")->AsString = Edit_Music->Text; // Name
Query3->Open();
}
else if (Form3->rdoMusic_Index == 1)
{
Query3->SQL->Clear();
Query3->SQL->Add("select * from 잡지목록 where 제목=:Param2");
Query3->ParamByName("Param2")->AsString = Edit_Music->Text; // Name
Query3->Open();
}
else if (Form3->rdoMusic_Index == 2)
{
Query3->SQL->Clear();
Query3->SQL->Add("select * from 잡지목록 where 출판사=:Param3");
Query3->ParamByName("Param3")->AsString = Edit_Music->Text; // Name
Query3->Open();
}
else if (Form3->rdoMusic_Index == 3)
{
Query3->SQL->Clear();
Query3->SQL->Add("select * from 잡지목록 where 출간일=:Param1");
Query3->ParamByName("Param1")->AsString = Edit_Music->Text; // Name
Query3->Open();
}
입니다. 여기서 else if 절 이후 Form3->rdoMusic_Index == 에서 에러가 딱걸리네요.
도와주세요...
|