Jump to content

Inı Dosyasına Göre Check Işaretlemek


WolfmanTR_
 Share

Recommended Posts

arkadaşlar .ini dosyasındaki veri 1 ise x check i işaretleyecek.Konumlar doğru ama işaretleme yapmıyor.

 

on show

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");
if result == 1 then
CheckBox.SetChecked("chrome", true);
end

 

 

Link to comment
Share on other sites

  • 2 hafta sonra ...

ee peki bu dosyalar fazlaysa nasl olacak 

 

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");
if result == "1" then
CheckBox.SetChecked("chrome", true);
end

 

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");

if result == "1" then
CheckBox.SetChecked("chrome", true);
end

 

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");

if result == "1" then
CheckBox.SetChecked("chrome", true);
end

 

böle alt alta biraz eziyetli oluyor gibime gelior :S sadece yolları nasil ekleriz listboxa hocam yardım edermisiniz..

Link to comment
Share on other sites

ee peki bu dosyalar fazlaysa nasl olacak 

 

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");
if result == "1" then
CheckBox.SetChecked("chrome", true);
end

 

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");

if result == "1" then
CheckBox.SetChecked("chrome", true);
end

 

result = INIFile.GetValue("AutoPlay\\Docs\\Data.ini", "ayar", "chrome");

if result == "1" then
CheckBox.SetChecked("chrome", true);
end

 

böle alt alta biraz eziyetli oluyor gibime gelior :S sadece yolları nasil ekleriz listboxa hocam yardım edermisiniz..

 

for döngüsü yapacaksın,

 

 

for i,v in pairs(result) do
url = INIFile.GetValue("AutoPlay\\Docs\\data.ini", "ayar", v);
result = ListBox.AddItem("ListBox1", ayar, v);
end
 
[ayar] sectionundaki tüm value leri Listbox a ekler
Edited by WolfmanTR_
Link to comment
Share on other sites

Hocam Kullaniyorum for döngüsünü ama işe yaramiyor :D 

trelist için kullaniyorum :S 

 

 

 
nListe = INIFile.GetValueNames("AutoPlay\\Settings\\Data.ini", "Folders");   --- ini Dosya dizini 
 
 
for i,v in pairs(nListe) do
tAdres = INIFile.GetValue("AutoPlay\\Settings\\Data.ini", "Folders", v);
 
AddTrelist = TreeList.AddRow("Plugin1", nListe, nil, nil, nil);
 
end
Link to comment
Share on other sites

  • Editor
nListe = INIFile.GetValueNames("AutoPlay\\Settings\\Data.ini", "Folders");   --- ini Dosya dizini 
 
 
for i,v in pairs(nListe) do
tAdres = INIFile.GetValue("AutoPlay\\Settings\\Data.ini", "Folders", v);
 
AddTrelist = TreeList.AddRow("Plugin1", tAdres, nil, nil, nil);
 
end
 
hata yaptıgın yeri kırmızı ile işaretledim.
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...