Re: Command button problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Chris" <chris_simon_cis@xxxxxxxxx>'s wild thoughts were
released on 16 Aug 2006 14:52:59 -0700 bearing the following
fruit:

Hello all, I am new to VB and am trying to do something simple but
having a problem. I have coded my OK command button to compare two
text boxes and prompt with a message box if the strings do not match.
If they match then the program should continue and if they do not match
then I want to exit out of the Ok command button back to the main form
without ending the application so the users can correct the text box
mistake then click ok again. Any help would be greatly appreciated!!!

If Form1.txtNew = Form1.txtConfirm Then
GoTo setpass
Else
MsgBox "Your New and Confirmed Passwords do not match"
'code to exit Ok cmd button without exiting the application??????
End If

I'm soooo glad I've wasted my time answering your question
in another group becuase you can't be bothered to crosspost.

PLEASE DON'T MULTIPOST!!!!!!!!

Jan Hyde (VB MVP)

--
Grammar: Lives with granpar (Jan Hyde)

.



Relevant Pages

  • Re: String > Integer Conversion Problem
    ... >> rescue ArgumentError ... > When the arguments to Integer are strings from the command line, ...
    (comp.lang.ruby)
  • Re: dd command & reading in background
    ... ^ D,"UnixReview: Shell Corner: The dspl Korn Shell ... user input timeout, do a search on C.U.S. for the ... # 0<c<127 - job exited with this exit code ...
    (comp.unix.shell)
  • Re: Most dependable way to run system commands
    ... Eventually I'd like to bring the execution of a few system commands ... specific execution issue (it dealt more with executing Perl code)). ... Unix and many similar systems, the exit status is an integer, with 0 ... variable after running a command via system or backticks. ...
    (perl.beginners)
  • Re: can I replace a string in all Matlab .m files under a folder?
    ... How to write a program in Matlab to change the strings ... This is so much easier to do in Unix and perl that it is hardly worth ... the command that follows is to be executed. ...
    (comp.soft-sys.matlab)
  • Re: Using strings in a case construct
    ... that clause are evaluated as an implicit progn, ... So properly I need to do something special to use strings. ...
    (comp.lang.lisp)