Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing users to open a table
Message
 
To
26/02/2002 22:28:30
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonesia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00625556
Message ID:
00626286
Views:
11
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 :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform