Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with set filter to?
Message
 
 
À
18/08/2006 15:08:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01146841
Message ID:
01146897
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform