VB登陆框中,提示MakeStr未定义

来源:百度知道 编辑:UC知道 时间:2024/06/05 21:07:44
我要做试卷生成系统~

抄了人家的一段人事管理系统

登陆框就出错

NameKey = MakeStr(txtUser)

说MAKESTR没定义???

怎么解决阿??~~~重赏阿~~
================================
Public PasswordKey As String
Public Try_times As Integer
Public NameKey As String

Private Sub Cmd_Cancel_Click()
End
End Sub
Private Sub Cmd_OK_Click()
Dim j As Single

'数据有效性检查
If Trim(txtUser) = "" Then
MsgBox "请输入用户名"
txtUser.SetFocus
Exit Sub
End If
If Trim(txtPwd) = "" Then
MsgBox "请输入密码"
txtPwd.SetFocus
Exit Sub
End If

NameKey = MakeStr(txtUser)
PasswordKey = MakeSt(txtPwdr)

'判断用户是否存在
If MyUser.In_DB(NameKey) = False Then
MsgBox "用户名不存在"
Try_times = Try_times + 1
If Try_times >= 3 Then
MsgBox "您已经三次尝试进入本系统,均不成功,系统将关闭&

MakeStr(txtUser)
应该是他写的一个MAKESTR()函数
就是function makestr()
.......
end function
这样一段代码
你再去他程序里面找找,
你应该是把这段代码复制漏了