What is wrong with this VBscript?

By Ozzy1
Jun 14, 2013
Post New Reply
  1. I am going to incorporate this script in another program, but I have no idea what is wrong:

    Set Dialog = CreateObject("TPFSoftware.ScriptDialog")
    Dialog.AddTextField "ID", "User ID:", 15
    Dialog.AddPasswordField "Pswd", "Password:", 15
    Dialog.AddPasswordField "Pswd", "Re-enter your password:", 15
    Dialog.AddButtons "button", Array("Continue")

    Also, how can I add a window title and a text prompt in the dialog box?
    Cheers. :)
  2. St1ckM4n

    St1ckM4n TS Evangelist Posts: 2,920   +627

    I claim no VBscript knowledge, but you have two password fields with an identifier that is the same - Pswd. I'd be changing this, as you should be making a check case later? E.g. pwd1 == pwd2 ?

Similar Topics

Create an account or login to comment

You need to be a member in order to leave a comment
TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.