Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Open Password protected Table In the code.. No Password Promp 1

Status
Not open for further replies.

jbpelletier

Programmer
Sep 8, 2001
232
CA
In my Code, How can i open a table (via Tcursor) that have a password protection. I know the password.
I need something like
Tc.open("TableName","Password")

I really need to allow user to byPass the table password but i dont whant em to have a self password for that table because i dont whant em to give any acces even READ-ONLY.

Probably i could do something crazy like

Tbl.removePassword("TheSecretPassword")
Tc.open("tableName")
//MyCode (only a simple scan)
Tc.close()
Tbl.protect("TheSecretPassword")

But im pretty sure there is a way to do it as it supposed to be.. And if there is a method to do that .. How can i remove the tableright just after the Tc.close().. like an UNLOG

Im using Corel Paradox 8, tanx

Jb Pelletier.
 
addpassword("pword")
;code
removepassword("pword")

Richie
 
tanx, it was exacly what i was looking for.. and its working very well

jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top