Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql curiosity
Message
De
18/03/2010 21:41:25
 
 
À
18/03/2010 11:03:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01455308
Message ID:
01455646
Vues:
39
Hi Tamas.

I'd say that you are selecting the data from different tables.

When you do the select on it's own VFP is searching the path for the bp_eng table to select the data from and the one it finds is the one you expect. When you execute this prg with all the code in it, VFP will select from the bp_eng.dbf that is already open, regardless of whether it's on the path or not.

I expect that if you check the paths of the tables it's selecting from you will find that they are different. Or you can remove the when clauses so that all the records are selected, look at the result and see that the data is different and that when your select produces no results it's because the data you have has nothing to select.

Ian Simcock.



>I enclosed the complete content of the prg.
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform