I had trouble with that too. Most people probably do. If you are deleting a bunch of lines say that are 5 thru 38 you can delete line 5 and then keep deleting line 5 until you have deleted enough lines.
John Balgenorth On Oct 26, 2014, at 3:57 AM, <[email protected]> <[email protected]> wrote: > Thanks Terry, > Sometimes I wish I wasn't so dense. > Larry > > ----- Original Message ----- From: "Terry Judd" <[email protected]> > To: "How to use LiveCode" <[email protected]> > Sent: Sunday, October 26, 2014 4:35 AM > Subject: Re: hilitedline > > > Larry - you need to delete the lines in reverse orderŠ> > put the hilitedlines of field "mySelects" into myDelete > > repeat with i = (the number of items in myDelete) down to 1 > delete line (item i of myDelete) of fld ³mySelects" > end repeat > > HTH, > > Terry... > > On 26/10/2014 7:58 pm, "[email protected]" > <[email protected]> wrote: > >> I have the following script in a button: >> >> on mouseUp >> >> put the hilitedline of field "mySelects" into myDelete >> >> repeat for each item L in myDelete >> >> delete line L of field "mySelects" >> >> end repeat >> >> end mouseUp >> >> >> >> If the hilitedlines of the field are, say, 1,4,7 then it will delete >> lines 1 and 4, but not 7. It always deletes all but the last line. Why? >> >> Thanks, Larry >> _______________________________________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
