No subject


Tue Aug 27 04:49:46 EDT 2019


putting it into a field on each card.  What I would recomend is that you
open the file and read the data only once, then close the data.  Then go
through each card and put it into the field that you want.

Try this...


    put "fred.txt" into fileName
    open file fileName for read
    read from file fileName until eof
    put it into fileData
    close file fileName

    repeat with x=1 to the number of cards
        put fileData into field "field1" of card x of this stack
    end repeat


That's pretty much the same thing you are trying to accomplish, but should
run much faster.


Derek Bump
Dreamscape Software, Inc.
http://www.dreamscapesoftware.com/




More information about the use-livecode mailing list