>I never seen BROWSE command changing an alias on its own. It doesn't do it when I run your code for arbitrary table. Can you post actual code?
>
The actual code is quite long and complicated (one method calling another, then another, and so on). But I do have very clearly a statement that SELECTs a cursor and then I am testing in the SCAN/ENDSCAN which cursor is being scanned. And if I put the BROWSE command after selecting the cursor things are screwed up. Strange thing is that BROWSE shows records of the selected cursor but the caption of the browse window shows a name of another cursor (not currenly selected). Commenting BROWSE solves the problem. Good thing that the BROWSE is only a test code so it won't affect the program.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham