home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
DATAMOD.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
1KB
|
31 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "DataMod.h"
#include "TermMod.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TData *Data;
//---------------------------------------------------------------------------
__fastcall TData::TData(TComponent* Owner)
: TCustomerData(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TData::CustomersFilterRecord(TDataSet *DataSet,
bool &Accept)
{
Accept = (CustomersState->Value == Cust->FilterText->Text);
}
//---------------------------------------------------------------------
void __fastcall TData::OrdersFilterRecord(TDataSet *DataSet,
bool &Accept)
{
Accept = (OrdersTerms->Value == Term->FilterText->Text);
}
//---------------------------------------------------------------------