View Single Post
  #1 (permalink)  
Old July 11th, 2009, 10:18 AM
Grace Grace is offline
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.