|
Query->Open();
Query->Filter="Sex='여자'";
Query->Filtered=true;
Query->Refresh();
TF_Print *FPrint = new TF_Print(this);
FPrint->QuickRep1->Preview();
delele FPrint;
//FPrint->Free();생소한 구문이군요.되는진 모르지만...
$.$ 님이 쓰신 글 :
: Query->Open();
: if( !Query->Eof )
: {
: if( Query->FieldByName("Sex")->AsString == "여자" )
: {
: TF_Print *FPrint = new TF_Print(this);
: FPrint->QuickRep1->Preview();
: FPrint->Free();
: }
: Query->Next();
: }
: Query->Close();
:
: 출력을 할 때요.. 여자를 선택하면.. 여자들만 출력을 하고요.. 남자를 선택하면.. 남자들만 출력을 하려고 하는데요..
: 이렇게 했더니.. 그냥 디비에 저장된 모든 내용이 출력되더라구요.. 조건에 맞게 출력하는 방법을 아시는 분 갈켜주세요..
:
:
:
|