>how I can do a set filter to with a variable that is not public, it gives me mistake without the variable is local or a property.
>
>ex.
>local cl
>cl=8
>select micursor
>set filter to tipo=cl
>
>this gives me mistake
1. Don't use filters.
2. If you insist on using them, you can do:
lcFilter = "tipo = '" + cl + "'"
set filter to &lcFilter
assuming cl is a character variable. Otherwise remove ' and use transform.
If it's not broken, fix it until it is.
My Blog