I intend to load the name of same games into a list box, the games are in one directory and sub directory.
I write the code above and only one game are load to the listbox.
I need too to only show the name of the game without the extension
ListBox.SetVisible("caixa1", true);
min = 1; -- The number to start at
max = 3; -- The number to stop at
for count = min, max do
data = File.Find("AutoPlay\\accao2", "*.exe", false, false, nil, nil);
ListBox.SetItemText("caixa1", count, data[count]);
ListBox.SetUpdate("caixa1", false);
end
Thanks for your help
Carlos
I write the code above and only one game are load to the listbox.
I need too to only show the name of the game without the extension
ListBox.SetVisible("caixa1", true);
min = 1; -- The number to start at
max = 3; -- The number to stop at
for count = min, max do
data = File.Find("AutoPlay\\accao2", "*.exe", false, false, nil, nil);
ListBox.SetItemText("caixa1", count, data[count]);
ListBox.SetUpdate("caixa1", false);
end
Thanks for your help
Carlos
Comment