Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 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 12th, 2006, 12:25 PM
Authorized User
 
Join Date: Jul 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default wdabase class

Im curious about the WDABASE class...i want to write my own for SQL server....there doesnt seem to be much in the book about the WDABase class....it just kind of shows up

 
Old July 12th, 2006, 01:14 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

See Appendix B
 
Old July 12th, 2006, 02:56 PM
Authorized User
 
Join Date: Jul 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great! thanks!

 
Old July 13th, 2006, 09:32 AM
Authorized User
 
Join Date: Jul 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why are the datatable and dataset objects passed byRef instead of byVal in the FillDatatable and FillDataSet methods of the WDABase class?

 
Old July 13th, 2006, 12:04 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Please review pages 147 and 148 and let me know if you still have questions.

Thearon
 
Old July 13th, 2006, 01:13 PM
Authorized User
 
Join Date: Jul 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for the quick reply....i havent had a chance to look at pgs 147,148 but will here as soon as i ask this question...

in the addparameter method the parameter type is passed in as oledbtype...

i am assuming type refers to the type of parameter that is being added (e.g. integer, string)

am i correct in assuming this?
what does it mean for sqldbtype to be an enumeration as compared to other data types or variables... can you enlighten me a bit more on this please?
thanks so much
-justin

 
Old July 13th, 2006, 01:24 PM
Authorized User
 
Join Date: Jul 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I may have answered my own question on the sqldbtype enumerated type

by declaring or passing it as that type (sqldbtype) will allow only certain values to be accepted (all the values listed for sqldbtype ..bit,int,text,datetime, etc)

an error will be thrown if a value that is not a member of the sqldbtype ....correct?

 
Old July 15th, 2006, 05:19 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

You are correct in your assumptions. Enjoy!

Thearon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Property access from Class within Partial Class zoltac007 C# 2005 0 December 1st, 2006 01:01 AM
Chapter 6 / Appendix B - Admin / WDABase Classes scgtman BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 May 20th, 2006 05:54 AM
Appendix B - WDABase class scgtman BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 2 May 20th, 2006 05:45 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM
How to include c# class and vb class in the .vbprj umeshayk VS.NET 2002/2003 2 January 9th, 2004 12:08 AM





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