procedure TForm1.BitBtn1Click(Sender: TObject);
var ZKette

tring;
DZahl,j:Integer;
begin
DZahl:=0;
ZKette:=Edit1.Text;
for j:=1 to Length(ZKette) do
begin
Case (ZKette[j]) of
'a' : DZahl:=DZahl +5000;
'm' : DZahl:=DZahl +1000;
'd' : DZahl:=DZahl +500;
'c' : DZahl:=DZahl +100;
'l' : DZahl:=DZahl +50;
'x' : DZahl:=DZahl +10;
'v' : DZahl:=DZahl +5;
'i' : DZahl:=DZahl +1;
end;
Edit2.Text:=FloatToStr(DZahl);
end;
end;