Unit1.cpp
Upload User: lhxd_sz
Upload Date: 2014-10-02
Package Size: 38814k
Code Size: 1k
Development Platform:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include "Unit1.h"
  5. //---------------------------------------------------------------------------
  6. #pragma package(smart_init)
  7. #pragma resource "*.dfm"
  8. TForm1 *Form1;
  9. //---------------------------------------------------------------------------
  10. __fastcall TForm1::TForm1(TComponent* Owner)
  11.         : TForm(Owner)
  12. {
  13. }
  14. //---------------------------------------------------------------------------
  15. void __fastcall TForm1::Button1Click(TObject *Sender)
  16. {
  17.   AnsiString ass;
  18.   ass="wertewtre";
  19.   Edit1->Text=ass.UpperCase();
  20.   ass="wedsgdrtewtre";
  21.   Edit2->Text=UpperCase(ass);
  22.   ass="wertew13123tre";
  23.   Edit3->Text=AnsiUpperCase(ass);
  24. }
  25. //---------------------------------------------------------------------------
  26. void __fastcall TForm1::Button2Click(TObject *Sender)
  27. {
  28.   AnsiString ass;
  29.   ass="RRGDLKJHGHG";
  30.   Edit1->Text=ass.LowerCase();
  31.   ass="EFHJKLOIHBBHG";
  32.   Edit2->Text=LowerCase(ass);
  33.   ass="JH34HJ8EHGHJRT";
  34.   Edit3->Text=AnsiLowerCase(ass);
  35. }
  36. //---------------------------------------------------------------------------