Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: hard coded somewhere?

From: gjones05:mail:orion at: 28-May-2001 19:19

From: "Ammon Cooke"
> Hi, > > Using the foreach line example from Core.pdf I get this: > > jobfile: request-file/filter "*.jbs" /file "jobs.jbs" > file-jobs: read/lines file jobfile > foreach line file-jobs [ > append jobs/data copy line > ] > fix-slider jobs > show jobs > > it always gives me the same data in 'jobs' (which > happens to be a text-list) no matter what file I tell > it to open. Why?? > > Thanks!! > Ammon
Depending the sequence of your code (I don't believe all of it was in your message), you will want to clear the data store for the list before reusing it. The simplist course may be to: ... jobs/data: copy [] ;add this line to clear this buffer foreach line file-jobs [ append jobs/data copy line ] Hopefully that will fix the problem. :-) --Scott Jones