Results 1 to 4 of 4

Thread: use input box as password screen?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17

    Post

    I am using an inputbox as a password screen in my application, but forgot how to choose what the pasword is and. Is it something like if inputbox.txt = "password" then etc. etc.?
    Please help

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    No, InputBox is a function, it returns the string:

    Code:
    Dim strPassword As String
    
    strPassword = InputBox("Please type in password:")
    
    If strPassword = "password" Then
        'Granted
    Else
        'Declined
    End If

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17

    Post

    thanx yuo are right. I figured it out

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Post

    you would probably be better off to use a textbox on a form, so that you can set passwordchar to *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width