我有一个名为的字符串str
,在我使用代码时它等于“管理员”:
Dim AdminSTR As String = "Administrator"
If str.ToString = AdminSTR Then
Home.CurrentUser.Text = "Current User: " & UsernameTextBox.Text
Home.CurrentUserSTR = UsernameTextBox.Text
Home.AccessLBL.Text = " | Level: " & str
Home.Show()
Else
ClientForm.Show()
End If
它把我引向我ClientForm
。虽然它应该引导我进入我的Home
表格。为什么会这样?
谢谢