Question:
Without using E3 user controls, how can I test a password to validate it, and then open a screen via scripts?
Solution:
To do so via scripts, you must use InputBox method.
Example:
Dim Input
Input = InputBox("Type the password to access")
If Input = "a" Then ' Testing if the typed password is equal to "a".
Application.GetFrame("").OpenScreen "Screen1?100?0", CLng(0)
Else
MsgBox "Wrong Password!"
End If
- Dim Input
- Input = InputBox("Type the password to access")
- If Input = "a" Then ' Testing if the typed password is equal to "a".
- Application.GetFrame("").OpenScreen "Screen1?100?0", CLng(0)
- Else
- MsgBox "Wrong Password!"
- End If
Dim Input
Input = InputBox("Type the password to access")
If Input = "a" Then ' Testing if the typed password is equal to "a".
Application.GetFrame("").OpenScreen "Screen1?100?0", CLng(0)
Else
MsgBox "Wrong Password!"
End If