Hi!
Some commands in the SCAN command might cause your alias to move record pointer to the end. In such case need to remember record pointer at the start of its body and than restore it at the end of each loop step.
>Why does SCAN..ENDSCAN ends when I have a FOR…ENDFOR inside it?
>This is what I have:
>SCAN
>** read variables
>***COPY something to array
>*** FOR EACH
> *** do some SELECT statement
>*** ENDFOR
>ENDSCAN
>It does the first record and then exists the scan. Why does it do that?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.