How to add a new item into the end of an existing line?

Michael Doub mikedoub at gmail.com
Mon Mar 16 17:31:58 EDT 2015


    put "1,2,3,4,5,6,7,8,9" & cr & "11,22,33,44,55,66,77,88,99" & cr 
after tData
    set itemdel to comma
    put the itemdel & 10 after item -1 of line 1 of tData


On 3/16/15 1:45 PM, Keith Clarke wrote:
> Folks,
> Please can anyone clarify the syntax needed to add a new item A to the end of an existing line B of an existing variable C?
>
> I can add to the end of the variable OK, as in
>
> put foo after C
>
> but if I try to put foo after B, after line B or after item -1 of line B, after Z (defined as item -1 of B) etc., and I get either no result or compilation errors.
>
> I’m clearly missing the magic words.
>
> Thanks in advance
> Keith..
>
>
>
>
>
>   
> _______________________________________________
> 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