Jump to content

Film Açtırma


Kral__
 Share

Recommended Posts

strAd = Dialog.Input("Film Ekleme", "Filmin ismini girin:", "", MB_ICONQUESTION)
strAdres = Dialog.FileBrowse(true, "Film Seçin", _DesktopFolder, "Flimler (.avi)|*.avi|", "", "dat", false, false);
if strAd ~= "" and strAdres ~= "" and (strAdres[1] ~= "CANCEL") and (strAdres ~= nil) then
strDosya = TextFile.ReadToString("AutoPlay\\Docs\\film.ini")
strAra = String.Find(strDosya, strAd, 1, false)
if strAra ~= -1 then Dialog.Message("", "Bu film zaten mevcut!", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1)
else
INIFile.SetValue("AutoPlay\\Docs\\film.ini", strAd, "Film", strAd)
INIFile.SetValue("AutoPlay\\Docs\\film.ini", strAd, "Adres", strAdres[1])
adres = INIFile.GetValue("AutoPlay\\Docs\\film.ini", strAd, "Adres");
ListBox.AddItem("ListBox1", "- "..strAd.."", adres)
end
end


Kodlarım bunlar ben bu kodları kullandığımda aynı filmi 2 defa ekliyemiyorum ama ben aynı filmi 2defa eklmek istiyorum nasıl yaparız?
Link to comment
Share on other sites

[codebox]strAd = Dialog.Input("Film Ekleme", "Filmin ismini girin:", "", MB_ICONQUESTION)
strAdres = Dialog.FileBrowse(true, "Film Seçin", _DesktopFolder, "Flimler (.avi)|*.avi|", "", "dat", false, false);
if strAd ~= "" and strAdres ~= "" and (strAdres[1] ~= "CANCEL") and (strAdres ~= nil) then
strDosya = TextFile.ReadToString("AutoPlay\\Docs\\film.ini")
INIFile.SetValue("AutoPlay\\Docs\\film.ini", strAd, "Film", strAd)
INIFile.SetValue("AutoPlay\\Docs\\film.ini", strAd, "Adres", strAdres[1])
adres = INIFile.GetValue("AutoPlay\\Docs\\film.ini", strAd, "Adres");
ListBox.AddItem("ListBox1", "- "..strAd.."", adres)
end
[/codebox]

bu şekilde deneyin

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...