Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best coding practices regarding open/unopen tables
Message
From
21/12/2003 07:16:49
 
 
To
20/12/2003 22:45:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00859873
Message ID:
00861085
Views:
24
> But using views or select sql cursors still opens the affected tables!
local cTempAlias
cTempAlias = "temp" + sys(2015)
use (m.cSomeTable) shared noupdate again alias (m.cTempAlias) in 0

select * ;
   from (m.cTempAlias) ;
   where ... 

use in (m.cTempAlias)
Note: if the source table is part of a DBC then the DBC will remain open even after the table has been closed. With free tables there is no such problem.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform