What is wrong with this VBscript?

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. :)
 
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 ?
 
Back