Показать сообщение отдельно
  #6  
Старый 06.12.2010, 16:01
Аватар для NumLock
NumLock NumLock вне форума
Let Me Show You
 
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
По умолчанию

Код:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Memo1: TMemo;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
var
  s: String;
begin
  s:='Welcome to the MSDN Library, an essential source of information for developers using Microsoft® tools, products, technologies and services. The MSDN Library includes how-to and reference documentation, sample code, technical articles, and more.';
  Memo1.Text:=s;
  s:=StringReplace(s, 'b', '', [rfReplaceAll, rfIgnoreCase]);
  s:=StringReplace(s, 'c', '', [rfReplaceAll, rfIgnoreCase]);
  s:=StringReplace(s, 'd', '', [rfReplaceAll, rfIgnoreCase]);
  Memo1.Lines.Add('--');
  Memo1.Lines.Add(s);
end;

end.
__________________
Пишу программы за еду.
__________________
Ответить с цитированием