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

[REBOL] Re: my-data

From: jim:clatfelter at: 22-Jul-2002 19:59

Hi Gregg, Thanks for the code and structure. I'm going to try it. I just used a text file because it's similar to a BASIC array, which I know how to manipulate already. I haven't yet caught on to REBOL's objects and blocks of objects and how to manipulate those. You've given me a start. Meanwhile, I managed to get the loop to work. Instead of putting all I wanted to do in one operation, I separated the assignment and the conversion to-money and the addition into three operations. Now everything adds up! button blue "Calculate" [ total: 0 total-exp-1: 0 for count 5 last-line rec-len [ if my-data/:count > to-string newline [ total: pick my-data count total: to-money total ] total-exp-1: total-exp-1 + total ] exp-1/text: total-exp-1 show [exp-1] ] Thanks again, Jim