Home > database >  Which prawn to help me to write a custom function in PB (connected to the SQL2000 a custom function)
Which prawn to help me to write a custom function in PB (connected to the SQL2000 a custom function)

Time:10-06

I write function as long as not empty password can log in is what's wrong

CodePudding user response:

Judge statement user name and password may have holes

CodePudding user response:

Can you give me a function?

CodePudding user response:

SQL server is set into a Windows account logged in, your function up to look at it

CodePudding user response:

Here is one of my login window, you can try can do not


If the trim (sle_pwd. Text)="" or isnull (sle_pwd. Text) then
Messagebox (" prompt ", "password cannot be empty!" )
Sle_pwd. Setfocus ()
The else
String ls_pw
Ls_name=ddlb_use. Text
Int li_count
Select the password, qx into: ls_pw, : ls_qx from EAM_namepassword where name=: ls_name;
commit;
String ls_pw1
Ls_pw1=trim (sle_pwd. Text)
If the trim (ls_pw) & lt;> Ls_pw1 then
Messagebox (" prompt ", "password error")
Sle_pwd. Setfocus ()
Sle_pwd. Text=""
Return 0
The else
Open (w_main)
Close (the parent)
End the if
End the if
  • Related