Debugging hint when working with 'tab'
Save time and agro by...

using "M" so that it is easy to see the replacements and extras.
so try this

put tab into T
put "M" into T --for debugging

put fld 1 into tempp
repeat for each line LNN in tempp
      put word 1 to -1 of LNN into cleanLine  --trim
put word 1 of cleanLine & T & word 2 to -1 of cleanLine & cr after newList
   end repeat
   ;put newList
   --filter newList without T  --in case there should be empty lines
   put 0 into prevNum
   repeat until the number of chars in newList is prevNum
      put the number of chars in newList into prevNum
      replace (cr & T & cr) with ( cr & cr) in newList
   end repeat
   ;put newList
   filter newList without empty
   ;put newList


Jim Ault
Las Vegas



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to