Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing users to open a table
Message
 
À
26/02/2002 22:28:30
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonésie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00625556
Message ID:
00626286
Vues:
9
Hi,

There's an old, easy trick to do this. Use a low level fopen() and modify the table header slightly. VFP will not be able to open the table nor will any other xbase compatible sfotware. When you want to use the table, open it using fopen() and write back to the header what ever you removed in step one. Save the file and open it normally. At the end of the session change the header back and you have cheap security!

- Val Matison

>Hello,
>
>Can we prevent users to open a table ?
>I know that we can use method code in the dbc_BeforeOpenTable event to preventing users to open the tables, but when I copy this table (myFile.DBF) into another Folder. There is no restriction to access to this table. Anybody have an idea ?
>
>Thank's in advance :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform