Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-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 July 11th, 2009, 10:18 AM
Authorized User
 
Join Date: Jun 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is the correct code on page 441 - 442?

Code:
Public Sub AddColor(ByVal newColor As Color)
Dim objColorPaletteButton As New ColorPaletteButton(newColor)-  Error 1
Buttons.Add(objColorPaletteButton)- Error 2
End Sub
After run,
-Error 1 Array bounds cannot appear in type specifiers.
-Error 2 Name 'objColorPaletteButton' is not declared.
 
Old July 12th, 2009, 01:13 PM
Wrox Author
 
Join Date: Mar 2006
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Grace,

I cannot see anything wrong. Can you download this chapters code and see if you can find the difference? You can download it at

http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html

Bryan
 
Old July 12th, 2009, 02:59 PM
Authorized User
 
Join Date: Jun 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you fix this little problem? Because, this problem will effect the rest steps on the chapter 14, I couldn't get result same as on the page 444, Figure 14-3, I really want to know this chapter.
 
Old July 12th, 2009, 11:58 PM
Wrox Author
 
Join Date: Mar 2006
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You will need to put in all of your class code for more help. Your code looks correct. Bryan
 
Old July 13th, 2009, 06:20 AM
Authorized User
 
Join Date: Jun 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Bryan, I only add two more colors and recopy the errors.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 28 Mulitdimentional Array is not correct. Patrick Cambria BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 2 March 6th, 2009 01:43 PM
Master Page Method: Code-Behind for Content Page kwilliams ASP.NET 2.0 Professional 3 June 2nd, 2008 12:57 PM
Correct code stefanocinfo BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 2 October 4th, 2006 03:06 AM
Ch 12, Try It Out, p.442, Line 3. Page not appear VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 March 9th, 2006 05:18 PM
Is this code correct for a Dataview rayncarnation ASP.NET 1.0 and 1.1 Basics 0 November 7th, 2005 05:55 PM





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