nightmare3519 Posted November 26, 2012 Share Posted November 26, 2012 (edited) Edited September 2, 2014 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted November 26, 2012 Editor Share Posted November 26, 2012 String.Mıd komutu ile yapabilirsin.Hemde hiç uğraşmadan. Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted November 26, 2012 Author Share Posted November 26, 2012 Tamamdır abi halletim onu bu arada öneri için teşekkürler.. String.Between kodu çok işime yaradı tavsiye ederim.. Peki inputa bir yazı yazdırdık bunun arasındaki boşlukları nasıl silebilirim? Mesela inputa böyle yazdık Merhaba TNCTR'ye hoşgeldiniz Bir butona basınca bu şekilde olacak MerhabaTNCTR'yehoşgeldiniz gibi Quote Link to comment Share on other sites More sharing options...
KintaRo Posted November 26, 2012 Share Posted November 26, 2012 herhangi bir metni alip göstermek istiyorsanız: [CODE] -- boşluk al function boslukAl(metin) if metin ~= "" then local boslukara = String.Find(metin, " ", 1, false) if boslukara ~= -1 then local degistir = String.Replace(metin, " ", "", false) return degistir; end end end Dialog.Message("", boslukAl("selam ben hedehodo")) [/CODE] bir inputa yazarken gerçek zamanlı boşlukları aldırmak istiyorsanız Global Functions: [CODE] -- boşluk al function boslukAl(nesne) local metin = Input.GetText(nesne) if metin ~= "" then local boslukara = String.Find(metin, " ", 1, false) if boslukara ~= -1 then local degistir = String.Replace(metin, " ", "", false) Input.SetText(nesne, degistir) Input.SetSelection(nesne, #Input.GetText(nesne)+1, #Input.GetText(nesne)+1) end end end [/CODE] Input on key: [CODE] boslukAl(this) [/CODE] Quote Link to comment Share on other sites More sharing options...
superhalit Posted November 28, 2012 Share Posted November 28, 2012 Strinh.Mid i Kullanmayı biliyonmu Kadir öğretebilirim 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.