>The otimization level is only showed to SQL commands?
>See the following code:
>
>Local lcUf, lcResultadoDoTeste
>lcUf = "ES"
>Select Clientes
>Sys(3054,1,"lcResultadoDoTeste")
>Locate For Uf = lcUf
>Messagebox(lcResultadoDoTeste)
>
>Messagebox always shows an empty value...
Yes, the optimization level is only shown for SELECT command. You can plug your condition into a simple query to see how it will be optimized.
SELECT * FROM Clientes ;
WHERE Uf = lcUf
--sb--