home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / LABELREP.CPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  35 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl\vcl.h>
  7. #pragma hdrstop
  8.  
  9. #include "Labelrep.h"
  10. #include "CustDM.h"
  11. //---------------------------------------------------------------------------
  12. #pragma resource "*.dfm"
  13. TLabelForm *LabelForm;
  14. //---------------------------------------------------------------------------
  15. __fastcall TLabelForm::TLabelForm(TComponent* Owner)
  16.   : TForm(Owner)
  17. {
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TLabelForm::QRBand1BeforePrint(bool &PrintBand)
  21. {
  22.  
  23.    Addr1Label->Caption=   DataModule2->CustomersCity->Value+
  24.    ' '+   DataModule2->CustomersZip->Value+' '+   DataModule2->CustomersState->Value;
  25.    if (DataModule2->CustomersAddr2->Value != ' ')
  26.            {
  27.             Addr2Label->Caption=Addr1Label->Caption;
  28.             Addr1Label->Caption=DataModule2->CustomersAddr2->Value;
  29.  
  30.            }
  31.     else
  32.     Addr2Label->Caption=' ';
  33.  
  34. }
  35. //---------------------------------------------------------------------