Hi everyone!
I' m here for ask help with the ListBox object.
In a project (Web browser) I've got a listbox object with some items wich are indexed by the following code:
Then, when I double click a item in the list, I need to give the complete path for the selected item, to use it with "INIFile.GetValue" and "Web.LoadURL" actions.Code:ListBox.DeleteItem("ListBox1", -1); --Clear list folder = Registry.GetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Favorites", true); --Get the path for the user Favorites folder file = File.Find(folder, "*.url", false, false, nil); --Search for .URL files for j,file_path in file do ListBox.AddItem("ListBox1", String.SplitPath(file_path).Filename, file_path); --Add the files to the ListBox object end
The problem is here: I've tried to use
but it doesn't work.Code:Selected = ListBox.GetSelected("ListBox1"); Seldata = ListBox.GetItemData("ListBox1", Selceted); Link = INIFile.GetValue(Seldata, "InternetShortcut", "URL"); Web.LoadURL("Web1", Link);
Can anyone help me, please? Thankyou.

Reply With Quote
