控件名稱 控件屬性
sle_server SingleLineEdit
sle_login SingleLineEdit
sle_oldkl SingleLineEdit
sle_pass SingleLineEdit
sle_repass SingleLineEdit
cb_
cb_
cb_
string ls_inifile
string ls_k
ls_inifile =
transaction pub_tr
pub_tr = create transaction
pub_tr
pub_tr
pub_tr
pub_tr
pub_tr
pub_tr
connect using pub_tr;
ls_old = sle_oldkl
ls_user = lower(trim(sle_logid
//得到數據庫聯接原用戶口令
select passshadow into :ls_k from tbl_pub_passshadow using pub_tr;
if ls_old <> f_password(ls_k
messagebox(
return
end if
//檢查核對口令
ls_pass = sle_pass
ls_repass = sle_repass
if ls_repass <> ls_pass then
messagebox(
return
end if
SetProfileString(ls_inifile
SetProfileString(ls_inifile
//修改數據庫用戶的聯接口令
ls_sql =
Execute Immediate :ls_sql using sqlca;
ls_pass = f_password(ls_pass
UPDATE TBL_PUB_PASSSHADOW SET PASSSHADOW =:ls_pass using pub_tr ;
commit using pub_tr;
commit using sqlca;
disconnect using pub_tr;
close(parent)
cb_
所有代碼已在Win
編輯推薦
ASP
Microsoft
[
From:http://tw.wingwit.com/Article/program/PB/201311/24611.html