frmprintform1.cpp

来自「大学田径运动会管理系统」· C++ 代码 · 共 37 行

CPP
37
字号
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "frmprintform1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tprint_form1 *print_form1;
//---------------------------------------------------------------------------
__fastcall Tprint_form1::Tprint_form1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall Tprint_form1::open(AnsiString m_sql)
{
m_con->Connected=false;
m_query->Active=false;
m_query->SQL->Clear();
m_query->SQL->Add(m_sql);
m_con->Connected=true;
m_query->Active=true;
        //TODO: Add your source code here
}
void __fastcall Tprint_form1::FormDestroy(TObject *Sender)
{
m_con->Connected=false;
m_query->Active=false;

}
//---------------------------------------------------------------------------



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?