Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2015 > Beginning Visual Basic 2015
Beginning Visual Basic 2015
This is the forum to discuss the Wrox book Beginning Visual Basic 2015 by Bryan Newsome; ISBN: 978-1-119-09211-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning Visual Basic 2015 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 April 7th, 2017, 03:18 PM
Registered User
Join Date: Mar 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default BC42104 Error Message Chapter 4

I'm working with the code on page 107. I get an error stating:

Variable 'strFavoriteColor' is used before it has been assigned a value. A null reference exception could result at runtime.

The odd thing is that the code runs just fine, but the error message keeps popping up.

Is there a fix for this?

I'm also using Visual Studio 2017 Community Edition on a Win 7 64 bit PC.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 error message odeddror BOOK: Professional ASP.NET 4 : in C# and VB 1 September 8th, 2010 02:49 AM
Chapter 4-Error message [email protected] BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 13 January 14th, 2010 06:16 PM
Chapter 7 Error message carlfoster BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 January 31st, 2007 02:07 PM

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