home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
LABELREP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
1KB
|
35 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "Labelrep.h"
#include "CustDM.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TLabelForm *LabelForm;
//---------------------------------------------------------------------------
__fastcall TLabelForm::TLabelForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TLabelForm::QRBand1BeforePrint(bool &PrintBand)
{
Addr1Label->Caption= DataModule2->CustomersCity->Value+
' '+ DataModule2->CustomersZip->Value+' '+ DataModule2->CustomersState->Value;
if (DataModule2->CustomersAddr2->Value != ' ')
{
Addr2Label->Caption=Addr1Label->Caption;
Addr1Label->Caption=DataModule2->CustomersAddr2->Value;
}
else
Addr2Label->Caption=' ';
}
//---------------------------------------------------------------------