acidrain
Executive Member
It was working... now it doesnt... im so gonna throw this pos out the window
Ne ways here is ALL the code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Borland.Vcl.StdCtrls, System.ComponentModel;
type
TfrmStrings = class(TForm)
lblWord: TLabel;
edtWord: TEdit;
lstModify: TListBox;
btnTransferModify: TButton;
btnRepeat: TButton;
btnClear: TButton;
procedure btnTransferModifyClick(Sender: TObject);
procedure btnClearClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmStrings: TfrmStrings;
implementation
{$R *.nfm}
procedure TfrmStrings.btnTransferModifyClick(Sender: TObject);
var
word : string;
i : integer;
NewWord : string;
begin
word := edtWord.Text;
for i := 1 to Length(word) do
begin
if ((word) <> ' ') and (word IN ['a','e','i','o','u'])
and (word IN ['A','E','I','O','U']) then
NewWord := NewWord + word;
end;
lstModify.Items.Add(NewWord);
end;
procedure TfrmStrings.btnClearClick(Sender: TObject);
begin
lstModify.Items.Clear;
end;
end.
Ne ways here is ALL the code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Borland.Vcl.StdCtrls, System.ComponentModel;
type
TfrmStrings = class(TForm)
lblWord: TLabel;
edtWord: TEdit;
lstModify: TListBox;
btnTransferModify: TButton;
btnRepeat: TButton;
btnClear: TButton;
procedure btnTransferModifyClick(Sender: TObject);
procedure btnClearClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmStrings: TfrmStrings;
implementation
{$R *.nfm}
procedure TfrmStrings.btnTransferModifyClick(Sender: TObject);
var
word : string;
i : integer;
NewWord : string;
begin
word := edtWord.Text;
for i := 1 to Length(word) do
begin
if ((word) <> ' ') and (word IN ['a','e','i','o','u'])
and (word IN ['A','E','I','O','U']) then
NewWord := NewWord + word;
end;
lstModify.Items.Add(NewWord);
end;
procedure TfrmStrings.btnClearClick(Sender: TObject);
begin
lstModify.Items.Clear;
end;
end.