Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open table - EXCLUSIVE if possible, if not then SHARED
Message
 
 
À
27/09/2007 14:33:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01257292
Message ID:
01257293
Vues:
15
lcTableName = "..."
TRY
	USE (lcTableName) EXCLUSIVE
CATCH TO oErr WHEN oErr.ErrorNo = 1705
	USE (lcTableName) SHARED
ENDTRY
>What is the easiest way to open a table for EXCLUSIVE access, if possible, but then open it SHARED if someone else has it open? I want the end result to be that the table is open. Then, I can use SYS(2011) to determine how it was opened.

>Alternately, is there a single, simple VFP command to convert a table from SHARED access to EXCLUSIVE access if no other user has it open in the DBC?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform