KB-28158: Testing passwords via scripts.

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

 

 

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *