Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2004, 04:06 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Warning Messages

Hello, World!

I`m new on VB. I`ve made some ASP pages that works with Access. My problem is this...

When a user will try to add text in a numeric field I would like to come up a warning message when the user will hit the submit button.
So... I know that the code should be something like this:

sub btnsumbit_OnClick()
...................
If (blah blah) < blah blah then blah blah...
Else...

Well... I don`t know how to continue after the "IF" and what to do after the "ELSE"
 
Old June 8th, 2004, 12:10 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

sub btnsubmit_OnClick()
  if (blah blah) < blah blah then
     msgbox "ERROR"
     exit sub
  end if
end sub

u come out of the procedure.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugger warning thillai Visual Basic 2005 Basics 1 April 4th, 2008 08:50 AM
meaning of a warning mastrgamr C++ Programming 7 December 22nd, 2006 08:16 AM
Warning error, please help! kscritch BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 December 12th, 2005 04:33 PM
Warning message NutzyNobs Beginning PHP 1 July 28th, 2005 02:31 PM
Warning Message AMP_Engineer BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 September 29th, 2004 08:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.