home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / MAINDATA.CPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  28 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 "maindata.h"
  10. //---------------------------------------------------------------------------
  11. #pragma resource "*.dfm"
  12. TDMMain *DMMain;
  13. //---------------------------------------------------------------------------
  14. __fastcall TDMMain::TDMMain(TComponent* Owner)
  15.   : TDataModule(Owner)
  16. {
  17. }
  18. //---------------------------------------------------------------------------
  19. void __fastcall TDMMain::tbOrdersCalcFields(TDataSet *DataSet)
  20. {
  21.    if (tbOrdersEmployeeFirstName->IsNull)
  22.       tbOrdersEmployeeFullName->Value = tbOrdersEmployeeLastName->Value;
  23.    else
  24.       tbOrdersEmployeeFullName->Value = tbOrdersEmployeeFirstName->Value + ' ' +
  25.       tbOrdersEmployeeLastName->Value;
  26.  
  27. }
  28. //---------------------------------------------------------------------