@Gicu Thanks for that answer. I see examples, and wonder, why this way? What's the downside to the other methods that I haven't experienced yet?
Then I end up with a mix of varying code based on the particular example I emulated for the situation I faced and researched.
It's easy to see why I miss the "old days" when there was one syntax for something, and only one syntax, and you could count on it always (excepting low level bugs) working one way.
It was easy to code (IMHO):
Code:
Select filename {all the selection options] Then
Eof = 0
Loop
Readnext ID Then
Read record then
do available record stuff
Else
do missing record stuff
end
Else Eof = 1
Until Eof Do
do more stuff if needed
Repeat
Else Debug !Where the hell is the file?
For the purists, I know the extra code after the Do seems superfluous, but there were occasions where it came in handy, I can't remember now an example of what they were. Another more logical option was to move all the record stuff into the Do section of the Loop code.