brdga
06-23-2004, 01:54 AM
Can anyone tell me what is wrong with this? The file is created but it has no content although I know the indexes in the listbox have associated data. Any help appreciated.
-- Get the indexes of the items currently selected in the listbox.
-- and get the data associated with that index
selected = ListBox.GetSelected("LB1");
sel_data = ListBox.GetItemData("LB1", selected);
-- write the data to a text file
TextFile.WriteFromString("C:\\Data.txt", sel_data, true);
-- Get the indexes of the items currently selected in the listbox.
-- and get the data associated with that index
selected = ListBox.GetSelected("LB1");
sel_data = ListBox.GetItemData("LB1", selected);
-- write the data to a text file
TextFile.WriteFromString("C:\\Data.txt", sel_data, true);