TechSpot

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

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...