Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unusual substitution syntax
Message
De
17/01/2004 23:48:56
 
 
À
17/01/2004 23:17:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00867888
Message ID:
00867892
Vues:
22
Randy

A couple of things that may be the problem. Referencing an alias in a sql select is not a good idea since the alias used in the SQL is not necessarily and in this case probably will not be 'myDBF' in the select execution. Also you will have use macro expansion in the where clause. If you simply macro expand your original where clause, it will probbly return all records since work area "myDBF" is already on myRecno and the where condition will evaluate to .T. for each record in the select.

Try this
USE myDBF
myRecno = recno()
*!* notice that I removed the recno() alias parameter 
lcFilter = "recno() = myRecno"  && myRecno is only variable
SELE * FROM myDBF WHERE &lcFilter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform