Mükemmel Posted May 21, 2010 Share Posted May 21, 2010 Arkadaşlar daha önce aşağıdaki komutu kullanabiliyordum, ancak yeni versiyonda hata veriyor. for a, z in ListBox.GetSelected(this) do if z == 1 then Paragraph.SetText("Paragraph1", "Herhangi bir yazı."); break; end Link to comment Share on other sites More sharing options...
spydevil Posted May 21, 2010 Share Posted May 21, 2010 ams8de o döngü artık kullanılmıyor oluru şu; local tbSecilen = ListBox.GetSelected(this); for a in pairs(tbSecilen) do if tbSecilen[a] == 1 then Paragraph.SetText("Paragraph1", "Herhangi bir yazı."); break; end[/CODE] local koymasanda olur döngü yapısı; [CODE]for x in pairs(table) do[/CODE] Link to comment Share on other sites More sharing options...
spydevil Posted May 21, 2010 Share Posted May 21, 2010 kusura bakma bunun bi çeşit yöntemi daha varmış şimdi gördüm ams8in pdf dosyasında; for a, z in pairs(ListBox.GetSelected(this)) do if z == 1 then Paragraph.SetText("Paragraph1", "Herhangi bir yazı."); break; end[/CODE] bölede olur önceki verdiğim gibide olur Link to comment Share on other sites More sharing options...
Mükemmel Posted May 22, 2010 Author Share Posted May 22, 2010 Yani extra olarak (pairs vs.) kodları eklenmiş. Öyle mi? Link to comment Share on other sites More sharing options...
spydevil Posted May 22, 2010 Share Posted May 22, 2010 evet for döngüsünde 2 değişkenlide kesin pairs kullanacaksın ams8 için pairsin ek bi özelliği tablodaki ögelerini alabiliyor mesela tbAB = {Bir="1", Iki="2"} burada pairs ise hem 1 ve 2 yi hemde Bir ve Iki ogelerini alabiliyorsun .. inş anlatabilmişimdir .. Link to comment Share on other sites More sharing options...
Mükemmel Posted May 22, 2010 Author Share Posted May 22, 2010 @spydevil çok çok teşekkür ediyorum. Anladım saolasın. Link to comment Share on other sites More sharing options...
Mükemmel Posted May 23, 2010 Author Share Posted May 23, 2010 Sorunsuz bir şekilde dediklerini yapıyorum, ancak ben bunun alt satırada yazı yazmasını istiyorum yani; Sürüm: 444 Dil: TürkçeyerineSürüm: 444 Dil: Türkçe olsun istiyorum. Link to comment Share on other sites More sharing options...
spydevil Posted May 23, 2010 Share Posted May 23, 2010 Paragraph.SetText("Paragraph1", "Sürüm: 444\r\nDil: Türkçe"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.