>I have the following loop in the Init of a Form:
>SELECT myfile
>GO TOP
>DO WHILE NOT EOF()
>
> this...
> and...
> that...
>
> SKIP
>ENDDO
>
>I loop until EOF, but then I want to go back to the top of the file and start the loop all over again. What's the best way to do that?
>
>I might also want to add a command button I can press to bail me out of the loop while stuck in the loop. What might that command button look like code-wise?
>
>I am sure I could figure it out, but you people have the coolest solutions to the hottest problems. Here we go loop-ty loop, here we go loop-ty die.
do while !chrsaw()
go top
scan while !chrsaw()
...
endscan
enddo
Of course this wouldn't prevent lengthy process between scan..endscan but seems better than poking a "on key" there.
Cetin