You should always get an error as SELECT 0 will select the first unused work area, meaning there will never be a table open there, so ALIAS() will return an empty string.
>I want intercept the VFP action into a try/catch/entry
>without show the Open dialog for this commands.
>
>SELECT 0
>SELECT * FROM ALIAS()
>GO TOP
>SET FILTER TO A=B
>* ......
>
>
>Thanks
>
>Fabio
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer