Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,705 of 10,840    |
|    Mike to All    |
|    Re: Login for a password form...multiple    |
|    25 Oct 05 09:57:45    |
   
   From: mbergerNO@SPAMskypoint.com   
      
   If this is your exact code, you have problems all over the place..   
      
   Your Select Case does not have a matching End Select   
      
   Also, you have 2 variables   
   - A module level variable called LoginSucceeded   
   - A procdure level variable called LoginSucceded   
   You are just asking for all kinds of debugging trouble by having 2 variable   
   named so similarily   
      
      
   - Why are you doing a   
   Select Case LoginSucceded ?   
   You are using the procedure level variable, and when the procedure is   
   entered (i.e., after the cmdOK is clicked), this variable will ALWAYS be   
   false.   
   The "Select Case LoginSucceded" makes no sense   
      
   - On the Case statements, Demo and File are not variables, if you intend for   
   these to be strings, you have to enclose these in double-quotes, use "Demo"   
   and "File".   
      
   - If you want to check the UID and PWD that a user enters, you will want to   
   open your file first, read it to see if the txtUserName.Text and   
   txtPassword.Text exist in the data file. If so, all is good, if not make the   
   user re-enter.   
      
   - I think you are trying to highlight the contents of the txtPassword   
   textbox by   
   SendKeys "{Home}+{End}"   
   - You should do the following   
   txtPassword.SetFocus   
   txtPassword.SelStart= 0   
   txtPassword.SelLength = Len(txtPassword.Text)   
      
   Try to straighten up some of that, and see how that goes   
      
   Mike   
      
      
      
   "william cline"
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca