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.No error occurs.
SELECT .... FROM currentworkare go top seek expression filter ... bla bla bla .... blanon fire a error, but open a dialog.
SELECT * from ambarabaciccicoccoi get this: