>This bug is a parser bug, and it is the same of the bug into the TYPE() command;
>the parser search for a array.
>
>This occur for Procedure and Methods.
Fabio,
First, your code has an error in it. You pass a parameter to a procedure without a PARAMETER or LPARAMETER statement.
Second, no where in the documentation does it say that the ALIAS accepts a function call. It specifically states a character string.
Third, the problem is easily by-passed by calling the function and using the return result as in USE (DBF()) AGAIN IN 0 ALIAS (lcalias).
Fourth, do not use the "is not optimal" argument. Fewer lines of code does not neccesarily translate into better performance.
George
Ubi caritas et amor, deus ibi est