James

I hear what your saying, but for this snippet I just want to cycle through
the list, checking the number is correct either being   3or4 spaces between
them, a print out at the end would be fine. My real data, has ifo on lines
in between numbers, but the count between each number will be either 3 or 4.
In reality if it failed the number check I will break out into a
sub-routine.

My problem is working out the loop required to achieve this, I have been on
and off hacking at this for a week, each variation not quite getting there.

Thanks
Steve

-----Original Message-----
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: 13 October 2003 15:39
To: Steve Massey
Cc: [EMAIL PROTECTED]
Subject: Re: design - help


On Monday, October 13, 2003, at 09:28  AM, Steve Massey wrote:

> Hi All

Howdy.

> my problem is one of progam concept, a data file is as below, my code
> (which
> is not doing
> what I want it to do is below)

In order to help with your concept, I think I need to understand it a
little better.

> I want to parse a file with a known 3 blank lines to number 1, then
> for each
> other
> number it could be either 3 or 4 blank lines. Each number has to be
> checked
> to see
> it's valid ie in sequence, and the next number follows with again a 3
> or 4
> increment

Okay, so you want to read the data file, ignore blank lines and see if
the numbers go in order, right?  What do you want to do if they do go
in order?  And if they don't?  Do you stop after the first break in
order or keep going?  With the old count or a new count starting with
the wrong number?

> Has anyone got any ideas on how I could get this code to work ???  I am
> stumped ...

I've got plenty of ideas, just give me a hint what I'm trying to do.  :)

James


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to