Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic USE stuff
Message
De
05/05/2009 16:35:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01397676
Message ID:
01398022
Vues:
48
>>Hi All:
>>
>>How can I test if a table is opened exclusive or shared?
>
>TRY
>   USE YourTable SHARED 
>   MESSAGEBOX([The table is opened shared])
>CATCH
>   MESSAGEBOX([The table is opened exclusive])
>ENDTRY
>
>
>>
>>How can I change it from exclusive to shared? If I execute a USE mytable SHARED command, I will cancel a previous SET ORDER TO command, which I do not want to do.
>
>SELECT ExclTable
>lcOrder = TAG()
>lnRecno = RECNO()
>USE ExclTable SHARED 
>SET ORDER TO (m.lcOrder)
>GOTO m.lnRecno
>
>>Thanks,
>>
>>Yossi

Thanks, I'll use the code!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform