Using Delete Line with HilitedLine results
Posted: Fri Dec 01, 2006 11:19 pm
I've got a scrolling text field (photosList) that accepts drag-n-drop filenames for photos. So far, the drag-n-drop code is working, and filenames are successfully added to the field.
If the user needs to remove one or more filenames from the list, I've added a button/script that puts the hilitedLine results into tLines. I then try to delete these lines with delete line tLines of field "photosList". This works great if only one line was selected, but it fails when tLines contains more than one line.
Any ideas on how to accomplish a multi-line delete from a scrolling text field? A different approach, perhaps?
thanks,
Robert
If the user needs to remove one or more filenames from the list, I've added a button/script that puts the hilitedLine results into tLines. I then try to delete these lines with delete line tLines of field "photosList". This works great if only one line was selected, but it fails when tLines contains more than one line.
Any ideas on how to accomplish a multi-line delete from a scrolling text field? A different approach, perhaps?
thanks,
Robert