Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 September 10th, 2004, 07:56 AM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML Address book example in vb.net p664

Hi
I'm working through the address book example and the first part which serializes one address works fine. The 2nd part which modifies the example for reading and writing multiple addresses is where I'm running into compilation errors. On page 664 the declaration of the addresses property is given as:

Public Property Addresses() as Address()

This gives me an error on the Return statement a few lines down:

Return [u]addressArray</u>

" Value of type '1-dimensional array of XMLAddressBook.Address' cannot be converted to 'XMLAddressBook.Address'."

It seems the compiler is expecting address type not an array of address types. If I change the declaration to:

Public Property Addresses() as Array()

I lose the compilation error but run into a runtime error in
SerializableData.Load with the address type .
I've tried to download the source sample but have not been successful (fails after 100 tries!)

Can anyone give me a clue as to what's going on?
TIA





Similar Threads
Thread Thread Starter Forum Replies Last Post
find External IP Address in VB.NET remya1000 General .NET 2 March 4th, 2014 12:31 AM
classes for retriving MAC address in VB .NET mistrypremal Pro VB.NET 2002/2003 9 August 10th, 2007 12:12 PM
Yahoo address book Through vb.net ankesh13 Access 0 August 25th, 2006 01:27 AM
Problem on VB.net having same structure address nick.tan VB.NET 2002/2003 Basics 0 October 28th, 2004 04:25 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





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