Put data in lines

Mark Smith mark at maseurope.net
Sat May 5 10:46:51 EDT 2007


This works for the given string, and should be quick even with 999  
values:

on mouseUp
   put "Arb.rec:0=234:1=456789:2=657483:3=4:4=3456473:5=1:6=0: " &  
CRLF into tRec
   set the itemDelimiter to ":"
   delete item 1 of tRec
   delete item -1 of tRec

   split tRec by ":" and "="
   combine tRec by cr and space -- (or tab, if you prefer)
   put tRec
end mouseUp

Best,

Mark

On 5 May 2007, at 11:18, Camm29 wrote:

> Hi ,
>
> I'm using read from socket
>
> example reply , can be max 999 values.
>
>
> Arb.rec:0=234:1=456789:2=657483:3=4:4=3456473:5=1:6=0: CRLF
>
> I wish to display in a updating field with the values shown as ,
>
> 0    234
> 1    456789
> 2    657483
> 3    4
> 4    3456473
> 5    1
> 6    0
>
> I must be missing something , i used a repeat but its very slow on  
> updating ?
>
> Thanks in advance
> Camm
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list