![]() |
'ErrMessage' is not declared
I am VB 2005 Student
I'm trying to validate some user input using the code provided in the textbook. It uses "ErrMessage" as shown in the code below: :
' Validate input for JanuaryI could use MessageBox.Show("blah blah blah") but the textbook uses ErrMessage as shown above. Gary |
Re: 'ErrMessage' is not declared
Write a sub, ErrMessage, that takes a string and throws up the MessageBox with the appropriate decorations.
|
Re: 'ErrMessage' is not declared
We haven't gotten to writing sub-routines or functions yet so I settled for a MessageBox.
Thank you for the reply though. Gary 1st Semester VB.Net Student |
Re: 'ErrMessage' is not declared
Just in case you're wondering, ErrMessage probably would have been declared somewhere in the code in your book. If it's not, might I suggest getting a new book? I know some books are horribly notorious for this. What book are you using?
|
Re: 'ErrMessage' is not declared
The Text Book is " Starting Out With Visual Basic 2005" by Tony Gaddis and Kip Irvine. Just in case you have the book the ErrMessage in their example code appears on page 315 and isn't declared anywhere in section 5.7 dealing with error validation. It's not a bad text in my newbial opinion but it did confuse the heck out of me until I decided to ignore it and call a MessageBox instead.
Gary |
| All times are GMT -5. The time now is 3:27 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC