deleting lines in a field

Serge Brami brami.serge at gmail.com
Mon Oct 27 03:28:25 EDT 2014


Each Time you delete a Line this change the index of the lines in the field  so you cannot do this
Best way :
repeat with i = the number of words in theLins down to 1
> 
>  Put empty into line (word i of theLins) of theData
> end repeat
Filter thelins without empty

Email par IPhone de 
Dr Serge BRAMI


> Le 27 oct. 2014 à 02:24, Dr. Hawkins <dochawk at gmail.com> a écrit :
> 
> Once you have the lines in variable theLins
> 
> repeat with i = the number of words in theLins down to 1
>  delete line (word i of theLins) of theData
> end repeat
> 
>> On Sun, Oct 26, 2014 at 2:10 AM, <larry at significantplanet.org> wrote:
>> 
>> I have a field that allows non-contiguous selection of lines
>> 
>> What is the easiest way to delete the selected lines?
>> 
>> I've tried a bunch of things and I end up doing this big convoluted script
>> to do it.  It seems like it should be simple?
>> 
>> 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
> 
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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