I have a list box with a button that exports the selected item data and item text to a text file. What im looking to do is if the selected item is already in the text file, either replace it or not add it at all. when i select an item it exports it but if i select that item again it just adds it to the end og the file. im kinda new to this so any help would be great.
This is what i got so far:
%SelectedIndex% = ListBoxObject[Serials].GetSelected
%ItemData% = ListBoxObject[Serials].GetItemData (%SelectedIndex%)
%ItemText% = ListBoxObject[Serials].GetItemText (%SelectedIndex%)
TextFile.InsertLine ("c:\My Serials.txt", "%ItemText% @ %ItemData%", -1)
This is what i got so far:
%SelectedIndex% = ListBoxObject[Serials].GetSelected
%ItemData% = ListBoxObject[Serials].GetItemData (%SelectedIndex%)
%ItemText% = ListBoxObject[Serials].GetItemText (%SelectedIndex%)
TextFile.InsertLine ("c:\My Serials.txt", "%ItemText% @ %ItemData%", -1)
Comment