simavli Posted January 13, 2013 Share Posted January 13, 2013 Çok aradım ama bulamadım sonunda konu açmaya karar verdim..Verildiyse ben bulamadım kusuruma bakmayın 2 İnput taki değerlerle nasıl dört işlem yapabiliriz. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 13, 2013 Share Posted January 13, 2013 ilk_veri = Input.GetText("Input1") -- 1. inputtaki veriyi al ilk_veri = String.ToNumber(ilk_veri) -- veriyi sayıya çevir (çünkü input gibi nesnelerden gelen veri string'dir ve sayısal şekle çevrilmesi gerekir.) son_veri = Input.GetText("Input2") -- 2. inputtaki veriyi al son_veri = String.ToNumber(son_veri) -- -- veriyi sayıya çevir (çünkü input gibi nesnelerden gelen veri string'dir ve sayısal şekle çevrilmesi gerekir.) sonuc = ilk_veri+son_veri -- iki veriyi topla Dialog.Message("Hesaplama", "Sonuç: " .. sonuc) -- mesja olarak goster ilk_veri+son_veri Burada ki işlemi + - * / şeklindeki operatorlerle değiştirerek basit 4 işlemleri yapabilirsiniz. Quote Link to comment Share on other sites More sharing options...
simavli Posted January 13, 2013 Author Share Posted January 13, 2013 (edited) apz dosyası http://www.mediafire.com/?bm2gez2e697j3sw ini dosyasından veri çekiyorum ama bir türlü yapamadım çarpmayı inputa değer girildiğinde diğer inputttaki değerle çarpmasını istiyorum diğer inputtaki değeri de ini dosyasından çekiyorum Edited January 13, 2013 by simavli Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted January 13, 2013 Share Posted January 13, 2013 http://www.mediafire.com/?lv2iky6wrdax16y hesap makinesi örneği, Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 13, 2013 Share Posted January 13, 2013 Öncelikle AMS'de küsüratlı işlem yaparken , değil . kullanmalısın. AMS küsürat ayracı olarak . yani nokta kullanıyor. O kısımları düzenledim. Bazı nesne isimlerini yanlış yazmışsın o yüzden hesaplama hataları vardı. Şimdi herşey iyi gibi. http://www.mediafire.com/?1a3zxapmcxtmk0z Quote Link to comment Share on other sites More sharing options...
simavli Posted January 13, 2013 Author Share Posted January 13, 2013 İlgilendiğiniz için çok teşekkür ederim 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.