Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with set filter to?
Message
 
 
To
18/08/2006 15:08:08
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01146841
Message ID:
01146897
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform