importing list

Alex Tweedly alex at tweedly.net
Wed Mar 8 21:49:00 EST 2006


Devin Asay wrote:

> Liam,
>
> If I understand correctly, your files contain lists like the one in  
> your message, which repeat over and over in a single file. So one  
> file might have many "records".
>
> This is how I'd approach it:
> <snip>
>   repeat for each line tLine in tCurrRecord
>     put item 2 of tLine into fld (item 1 of tLine)
>   end repeat

You could make that

     put item 2 to -1 of tLine into fld (item 1 of tLine)

just in case there might be a ":" within the rest of the line.

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 03/03/2006




More information about the use-livecode mailing list