SelmanBAL Posted November 7, 2014 Share Posted November 7, 2014 Merhaba arkadaşlar. Ben yeni yeni ams ve programlama öğreniyorum. AMS ile birkaç çalışma yaptım kısa zaman içerisinde paylaşmayı düşünüyorum. 3 gündür treelist pluginini öğrendim şimdi list box ile denemeler yapıyordum çünkü farkettimki listbox ile bir çok proje yapılmış ve bu projelerin kullanığı çeşitlilik çok fazla lakin bir problemle karşılaştım. ListBox satırlarını saydırıp toplam değeri label e aktarmak istedim fakat bir türlü yapamadım. TreeList te TreeList.CountRows ile saydırabiliyorum ama listbox ta ListBox.GetCount ile denedim ama saydı bir türlü yapamadım. Acaba ListBox ta böyle bir özellikmi yok? Veya benmi beceremedim? Konuyla ilgili bütün örnek çalışmalara ve derslere baktım ama bulamadım lütfen yardım edin. Şimdiden teşekkür ederim. Quote Link to comment Share on other sites More sharing options...
Cyph3r Posted November 7, 2014 Share Posted November 7, 2014 satirsay = ListBox.GetCount("ListBox1"); Label.SetText("Label1", satirsay); Bu şekilde bir sıkıntı çıkmaması lazım :huh: Quote Link to comment Share on other sites More sharing options...
SelmanBAL Posted November 7, 2014 Author Share Posted November 7, 2014 Hocam öncelikle ilginiz için çok teşşekür ederim bende o şekilde yapmıştım fakat sonuç -1 çıkıyor. Benim yazdığım kod: [codeh] prosay = ListBox.GetCount("ListBox1"); Label.SetText("topprogram","Toplam Program Sayısı: "..prosay) [/codeh] Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted November 9, 2014 Share Posted November 9, 2014 Sonucu -1 olarak almanız normal değil. Proje dosyası verebilirseniz yardımcı olmaya çalışırız. Quote Link to comment Share on other sites More sharing options...
SelmanBAL Posted November 9, 2014 Author Share Posted November 9, 2014 Hocam çok teşekkür ederim sorun çözüldü ams sürümüm eskiymiş plugini görmemiş yeni sürümü yükleyince düzeldi :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.