>If you have VFP7 is only adding a REWRITE in the SELECT SQL. If not try this:
>
>USE DBF(tcalias) IN 0 AGAIN alias xxTemp
>USE DBF("xxTemp") IN (tcalias) AGAIN ALIAS (tcalias)
>USE IN xxTemp
Ops ... I missed more code:
FUNCTION hazmodificable
LPARAMETERS tcalias
USE DBF(tcalias) IN 0 AGAIN alias xxTemp
USE DBF("xxTemp") IN (tcalias) AGAIN ALIAS (tcalias)
USE IN xxTemp
ENDFUNC
The call is doing like:
= hazmodificable(ALIAS())
= hazmodificable("query1")