Coding KODE
if ComboBox1.Text='D' then
Edit1.Text:='Dancow';
if ComboBox1.Text='S' then
Edit1.Text:='Sustagen';
if ComboBox1.Text='M' then
Edit1.Text:='Milo';
Coding UKURAN
if RadioButton1.Checked=True then
begin
if ComboBox1.Text='D' then
Edit3.Text:='50000';
end;
if RadioButton1.Checked=True then
begin
if ComboBox1.Text='S' then
Edit3.Text:='51000';
end;
if RadioButton1.Checked=True then
begin
if ComboBox1.Text='M' then
Edit3.Text:='52000';
f RadioButton2.Checked=True then
begin
if ComboBox1.Text='D' then
Edit3.Text:='60000';
end;
if RadioButton2.Checked=True then
begin
if ComboBox1.Text='S' then
Edit3.Text:='61000';
end;
if RadioButton2.Checked=True then
begin
if ComboBox1.Text='M' then
Edit3.Text:='62000';
if RadioButton3.Checked=True then
begin
if ComboBox1.Text='D' then
Edit3.Text:='70000';
end;
if RadioButton3.Checked=True then
begin
if ComboBox1.Text='S' then
Edit3.Text:='71000';
end;
if RadioButton3.Checked=True then
begin
if ComboBox1.Text='M' then
Edit3.Text:='72000';
Coding JUMLAH JUAL
Edit4.Text:=FloatToStr(StrToFloatDef(Edit3.Text,0)*(StrToFloatDef(Edit2.Text,0)));
if (StrToFloatDef(Edit4.Text,0)>=300000) then
begin
Edit5.Text:=FloatToStr(StrToFloatDef(Edit3.Text,0)*0.15);
Edit6.Text:=FloatToStr(StrToFloatDef(Edit4.Text,0)- StrToFloatDef(Edit5.Text,0));
end
else
Edit5.Text:='0';
Edit6.Text:=FloatToStr(StrToFloatDef(Edit4.Text,0)- StrToFloatDef(Edit5.Text,0));