[code]if key=chr(13) then
with combobox1 do
if (text<>'') and (items.IndexOf(text)< 0) then
items.Add(text);[/code]
program çalışırken comboboxa girilen değer eğer items ta yok ise ekliyor, fakat kapatıp açtığımda siliniyor. Neden olabilir.
comboboxa girilen değerlerin items eklenmesi
Forum kuralları
Forum kurallarını okuyup, uyunuz!
Forum kurallarını okuyup, uyunuz!
Re: comboboxa girilen değerlerin items eklenmesi
Eklediğinizi bir yere yazıp açınca tekrar okumanız lazım.
Bir kelimenin anlamını öğretsen bile yeter..



Re: comboboxa girilen değerlerin items eklenmesi(çözüldü)
[code]
if key=chr(13) then
with combobox1 do
if (text<>'') and (items.IndexOf(text)< 0) then
items.Add(text);
combobox1.Items.SaveToFile( 'txt\firma.TXT');
[/code]
if key=chr(13) then
with combobox1 do
if (text<>'') and (items.IndexOf(text)< 0) then
items.Add(text);
combobox1.Items.SaveToFile( 'txt\firma.TXT');
[/code]