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?
>I came across a strange problem with BROWSE command. For some reason the BROWSE command changes the active alias. Here is a sample code:
>
>
>select MyCursor
>BROWSE
>SCAN
> =messagebox( alias() )
>ENDSCAN
>
>
>The alias() between SCAN and ENDSCAN shows a different cursor. There are several cursors open but for some reason it picks up one cursor. If I comment BROWSE, all works as expected.
>
>Is this my problem or a bug?
--sb--