in reply to numbers not adding up!

It does get added to, but on the next line of input, you are resetting the value of $offset to $segOffset. Is that what you are seeing?



pbeckingham - typist, perishable vertebrate.

Replies are listed 'Best First'.
Re^2: numbers not adding up!
by wusphere (Novice) on Aug 07, 2004 at 23:04 UTC
    Thanks for your prompt reply. I do reset the offSet value to segOffset when its done within the forloop and then reads the next line. Inside the forloop it should loop for 6 times and add up the offSet value to something like this below: 1st loop = 24 + 240 2nd loop = 244 + 240 3rd loop = 484 + 240 and so on....
      Sorry its should be like. Numbers were incorrect 1st loop = 24 + 240 2nd loop = 284 + 240 3rd loop = 524 + 240 and so on....
        I fat fingured..too tired. it should be 1st loop = 24 + 240 2nd loop = 264 + 240 3rd loop = 504 + 240 and so on....