home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
CUSTDM.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
1KB
|
26 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "CustDM.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TDataModule2 *DataModule2;
//---------------------------------------------------------------------------
__fastcall TDataModule2::TDataModule2(TComponent* Owner)
: TDataModule(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TDataModule2::LineItemsCalcFields(TDataSet *DataSet)
{
LineItemsExtendedPrice->Value = LineItemsPrice->Value *
((100 - LineItemsDiscount->Value) / 100);
LineItemsTotal->Value = LineItemsExtendedPrice->Value *
LineItemsQty->Value;
}
//---------------------------------------------------------------------