Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql curiosity
Message
From
18/03/2010 21:41:25
 
 
To
18/03/2010 11:03:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01455308
Message ID:
01455646
Views:
38
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.
>
Previous
Reply
Map
View

Click here to load this message in the networking platform