Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memos and Conditions
Message
 
 
À
07/07/2010 16:44:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01471723
Message ID:
01471744
Vues:
47
>>>Here one that got me last weekend.
>>>
>>>All four methods of comparing a Memo field to a string resulted in 0 rows. (notice I was using a greater-then operator.)
>>>
>>>
>>>
>>>CREATE CURSOR test (test M)
>>>
>>>INSERT INTO test VALUES ("C:\test1\test2\")
>>>INSERT INTO test VALUES ("C:\test1\")
>>>INSERT INTO test VALUES ("C:\test1\test3\")
>>>INSERT INTO test VALUES ("C:\")

>>The work around is simple - use LIKE command. <pre>lower(Test) LIKE 'c:\test1\_%'
>
>Hay, it worked, even in VFP
>
>SELECT * FROM test WHERE LIKE("c:\test1\*",LOWER(test))
>
Use the first version (SQL Server like) so the syntax will be uniform. Don't use VFP specific functions/syntax when more ANSI way is available.
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