Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where Deleted()
Message
From
28/03/2003 14:07:56
 
 
To
28/03/2003 12:51:51
Humberto Ramirez
H. Ayuntamiento de Colima
Colima, Mexico
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00771350
Message ID:
00771474
Views:
7
>Ok Liam...
>
>The other query:
>
>&& Delete type's holidays.
>Delete From BuyHolidays Where idBuy == BuyType.idBuy
>Delete In BuyType
>
>&& Go to top and reload the holidays.
>Go Top In BuyType
>Select * From BuyHoliDays ;
> Into Cursor curHolidays ;
> Where idBuy == BuyType.idBuy And !Deleted('BuyHoliDays')
>...
>...
>After this, the curHolidays is empty, but if I quit of the form and open it again the query work fine. And there are more than one Holiday in the table for the first BuyType (go top).

Is your code running in a private datasession? SET DELETED is scoped to the data session, so just doing SET DELETED ON in your main program, and then running your code in a private datasession will not do what you expect. It's better to use SET DELETED (scoped properly), but in this case you could just use DELETED() in your query without specifing the alias. That will work as long as the SELECT is only operating on a single table. Specifying the alias will NOT work. See the help for "SELECT - SQL" for more details.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform