hilitedline

JB sundown at pacifier.com
Sun Oct 26 16:22:37 EDT 2014


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, <larry at significantplanet.org> <larry at significantplanet.org> wrote:

> Thanks Terry,
> Sometimes I wish I wasn't so dense.
> Larry
> 
> ----- Original Message ----- From: "Terry Judd" <terry.judd at unimelb.edu.au>
> To: "How to use LiveCode" <use-livecode at lists.runrev.com>
> 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, "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
> 
> 
> _______________________________________________
> 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 
> 
> _______________________________________________
> 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