Jump to content

File.find Da Hata Veriyor


turkoglu98
 Share

Recommended Posts

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
Link to comment
Share on other sites

[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]

Link to comment
Share on other sites

[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

Link to comment
Share on other sites

[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]

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...