Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Zap/Dele All - no packing
Message
From
01/03/2016 01:56:36
Antonio Lopes (Online)
BookMARC
Coimbra, Portugal
 
 
To
29/02/2016 20:53:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01632301
Message ID:
01632327
Views:
71
>SET SAFETY OFF
>SET EXCLUSIVE on
>USE bookings IN 0 EXCLUSIVE &&I have tried it with and without the exclusive clause. Makes no difference.
At this point, since you included an "IN 0" clause, if there is any table opened in the current work area all the following commands and functions will refer to it, not to the "bookings" work area.
>DELETE ALL
>PACK
>IF ISEXCLUSIVE( ) &&Just to check if there is exclusivity. returns .f. each time - no matter what I change around in the code.
> MESSAGEBOX('Table opened exclusive')
>ELSE
>  MESSAGEBOX('Not opened exclusively')
>ENDIF
>SET EXCLUSIVE OFF
>SET SAFETY ON
So, before the previous bunch of code, a
SELECT bookings
is required to make sure you're targeting "bookings", and not something else.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform