Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXCLUSIVE and USED()
Message
De
02/09/2008 15:59:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344237
Message ID:
01344284
Vues:
12
>>>I need to save the status of a table, do some stuff, then get the table back to where it was.
>>>
>>>* Need to determine what the status of WorkList is at this point. Used, Exclusive, etc.
>>>
>>>USE (m_prom_dir) + 'WORKLIST' EXCLUSIVE IN 0
>>>
>>>DO WHATEVER
>>>
>>>* Need to get WorkList back to where it was before. Used, Exclusive, etc.
>>>
>>
>>Some information you may want to check is whether the table is opened exclusively, the record pointer, active index, active filter, and any incoming or outgoing relations. This latter part looks fairly complicated.
>>
>>It would be much simpler to re-open the table in another area (assuming it was not opened exclusively somewhere), with USE... AGAIN, and then just close the table. The only thing you would need to remember and restore, in this case, is the number of the work area.
>
>USE AGAIN doesn't change the status of it, e.g. if it was opened shared, again would not open it exclusively and vs. versa. It's a caveat here.

Well, actually, USE ... AGAIN can't even be used if the table is used exclusively somewhere.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform