home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
LABELREP.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
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=' ';
}
//---------------------------------------------------------------------