Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem deleting a record in an open table..
Message
 
 
To
22/11/2006 20:07:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01171965
Message ID:
01171967
Views:
6
It's overkill to PACK a table after each delete. It should be done as maintanance operation not as a part of application regular run. Use SET DELETE ON to make deleted records "invisible" for your application. Keep in mind that SET DELETE ON is scooped to the current datasession.


>I've always had problems deleting a record from an open table.
>
>Here's the code:
>
>
>dele
>gfile=juststem(dbf())
>use in &gfile
>use &gfile in 0 alias gfile exclusive
>select gfile
>pack
>use
>
>
>And I get error file is in use in the 4th line. *sigh*
>
>Help pls.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform