hilitedline

Terry Judd terry.judd at unimelb.edu.au
Sun Oct 26 06:35:56 EDT 2014


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, "larry at significantplanet.org"
<larry at significantplanet.org> 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
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list