15-01-2019, 10:50 AM
السلام عليكم اردت صنع دليل الهاتفي الخاص بالولايات ووضعت combobox و label1 وهذا هو الكود
PHP كود :
procedure TForm1.ComboBox1Change(Sender: TObject);
begin
if ComboBox1.text='adrar' then
begin
Label1.caption:=('049 36 46 40/049 36 46 ');
end
else if ComboBox1.text='chlef' then
begin
Label1.Caption:= ('027 77 24 00');
end;
end;
end.
![[صورة: p_1110ewb6d1.png]](https://a.top4top.net/p_1110ewb6d1.png)
![[صورة: p_11104lhn41.png]](https://c.top4top.net/p_11104lhn41.png)