bitmez13 Posted February 13, 2014 Share Posted February 13, 2014 tFolder = Folder.Find("AutoPlay\\Docs", "*", false, nil); for a in pairs(tFolder) do--comboboxda klasörler listele ComboBox.AddItem("ComboBox1", String.SplitPath(tFolder[a]).Filename, tFolder[a]); end ComboBox.SetSelected("ComboBox1", 1) comboboxda klasörler listeleniyor yanlız docs klasörü boşsa hata veriyor biz docs klasörü boşsa bir klasör bulunamadı şeklinde bir ikaz verdirebilirmiyiz Quote Link to comment Share on other sites More sharing options...
KintaRo Posted February 13, 2014 Share Posted February 13, 2014 tFolder = Folder.Find("AutoPlay\\Docs", "*", false, nil); if tFolder then for a in pairs(tFolder) do--comboboxda klasörler listele ComboBox.AddItem("ComboBox1", String.SplitPath(tFolder[a]).Filename, tFolder[a]); end ComboBox.SetSelected("ComboBox1", 1) else Dialog.Message("Hata", "Klasör Boş") end 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.