Wrox Programmer Forums
|
BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 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 March 28th, 2008, 03:49 PM
Authorized User
 
Join Date: Mar 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter7 Again

I have reachedf the dizzy heights of page 138 (no mean feat) and am tryin to run the application to test it. My problem is that when I click the Save button, the debugger throws me back into the code at the section;

 Public Property Person() As Person 'defines content of text boxes.
        Get
            With mPerson
                .FirstName = txtFirstName.Text

and a message box....

Use the "new" keyword to create an object instance.

Can anybody still reading this forum offer any advice?

Cheers

 
Old March 28th, 2008, 06:57 PM
Authorized User
 
Join Date: Mar 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found it...

It looks like I removed a couple of lines I shouldn't have when I was removing the test data from earlier. The section involved was as shown below.

Dim objPerson As New Person
        objPersonalDetails.Person = objPerson
        Me.Text = "Personal Organizer - Viewing " + _
        objPersonalDetails.Person.DisplayName

Sorry to have wasted your time.






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem on Utils.java of chapter7 Jim0602 BOOK: Beginning Cryptography with Java 2 June 2nd, 2007 12:55 AM





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