发信人: mendy.bbs@bbs.nju.edu.cn (孟迪), 信区: cnprogram
标 题: How to automate logon for Paradox tables
发信站: nju_bbs (Sun Apr 19 09:20:49 1998)
转信站: Lilac!ustcnews!nju_bbs
发信人: njhe (he要破产), 信区: RAD
标 题: How to automate logon for Paradox tables
发信站: '3m紫金飞鸿m' (Mon Mar 9 18:11:28 1998) , 站内信件
Product: Delphi
Version: All
Platform: Windows/Win32
Password automation
Q: I have a paradox table that uses a password. How do I make it so
that the form that uses the table comes up without prompting the user
for the password?
A: The table component's ACTIVE property must be set to FALSE (If
it is active before you have added the pasword, you will be prompted).
Then, put this code in the handler for the form's OnCreate event:
Session.AddPassword('My secret password');
Table1.Active := True;
Once you close the table, you can remove the password with
RemovePassword('My secret password'), or you can remove all current
passwords with RemoveAllPasswords. (Note: This is for Paradox tables
only.)
--
不惜一切代价,达到修炼的真义。
遇神阻则弑神,遇佛阻则弑佛。
m;31m※ 来源:·紫金飞鸿 bbs.njupt.edu.cn·[FROM: 202.119.236.104]m
--
※ 来源:.南大小百合信息交换站 bbs.nju.edu.cn.[FROM: a507yjh.nju.edu]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:8.930毫秒