turkoglu98 Posted June 21, 2012 Share Posted June 21, 2012 tAra = File.Find(_SourceFolder.. "\\oyunlar", "*.tgo", true, false, nil, nil) for i,v in pairs(tAra) do tAyir = String.SplitPath(v) ListBox.AddItem("1", tAyir.Filename,v) end arkadaşlar kod bu normalde sorunsuz çalışıyor ama bir sonuç bulamazsa hata veriyor Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted June 21, 2012 Share Posted June 21, 2012 [codebox] tAra = File.Find(_SourceFolder.. "\\oyunlar", "*.tgo", true, false, nil, nil) if tAra then -- dosya bulunduysa for i,v in pairs(tAra) do tAyir = String.SplitPath(v) ListBox.AddItem("1", tAyir.Filename,v) end end [/codebox] Quote Link to comment Share on other sites More sharing options...
milano88 Posted June 21, 2012 Share Posted June 21, 2012 [font="Courier New"][color="#000080"]if[/color] ( tAra ~= [color="#0000FF"]"CANCEL"[/color] [color="#000080"]and[/color] tAra ~= [color="#000080"]nil[/color] ) [color="#000080"]then[/color][/font] şeklindede kullanabilirsin Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted June 21, 2012 Share Posted June 21, 2012 [quote name='milano88' date='21 June 2012 - 23:14 ' timestamp='1340309678' post='1214409'] [font="Courier New"][color="#000080"]if[/color] ( tAra ~= [color="#0000FF"]"CANCEL"[/color] [color="#000080"]and[/color] tAra ~= [color="#000080"]nil[/color] ) [color="#000080"]then[/color][/font] şeklindede kullanabilirsin [/quote] [color="#8B0000"][font="Lucida Sans Unicode"]Help dosyasına baktım da hata olduğunda nil olarak dönebilir diyor. Sence Cancel mantıksız değil mi ? File.Find komutu dialog değil ki iptal edilsin.[/font][/color] 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.