Jump to content

Listbox Ta Satır Saydırıp Toplam Alabilirmiyim?


SelmanBAL
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...