Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memos and Conditions
Message
 
 
À
07/07/2010 15:18:15
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:
01471725
Vues:
82
Hi Greg,

Try
SELECT * FROM test WHERE test LIKE "C:\test1\_%" 
>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:\")
>
>SELECT * FROM test WHERE test > "C:\test1\"
>? _tally
>SELECT * FROM test WHERE (test+'') > "C:\test1\"
>? _tally
>SELECT * FROM test WHERE alltrim(test) > "C:\test1\"
>? _tally
>SELECT * FROM test WHERE cast(test as char(240)) > "C:\test1\"
>? _tally
>
>
>
>The example came from trying to get a list of folder names that are subfolder of a some root folder.
>
>Does anyone know of any work-around?
>I have one but it is slower then expected.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform