|
Subject:
|
Visual Basic 2005 Express Edition
|
|
Posted By:
|
thomasks
|
Post Date:
|
8/30/2006 1:41:39 AM
|
Hi,
I'm new to programming. Can I use Visual Studio 2005 Express Edition with this book?
My first issue is on page 50. I cannot see the "ODBCDataAdapter" control in the tool box.
....must I upgrade to Visual Studio 2005 Professional Edition?
Thanks,
Kevin
|
|
Reply By:
|
Thearon
|
Reply Date:
|
9/1/2006 6:06:21 PM
|
Kevin,
You really should use the version of Visual Studio that the book is written for. This book was written for Visual Studio .Net 2003.
Thearon
|
|
Reply By:
|
HenBar
|
Reply Date:
|
9/6/2006 5:55:06 AM
|
Thearon
I am also using VB Express Edition (the price was right), quite successfully so far with one problem (which may or may not be related to the fact that it is the Express Edition and not VB.Net 2003)
In the LoadGroups procedure (chapter 7), the LastUpdateDate field in the ListBox control displays only a g (or whatever letter I used to indicate a format type) when the code from the book is entered as written. (I ran the code downloaded from the website and it works fine). The problem seems to be in the line of code:
objListViewItem.SubItems.Add( _ Format(objGroupsDS.Tables("Groups").Rows (intIndex).Item( _ "LastUpdateDate"), "g"))
If I add a variable to the procedure and then Format the variable, it works fine.
Dim dteFormattedDate As Date ... ...
dteFormattedDate = objGroupsDS.Tables("Groups").Rows(intIndex).Item("LastUpdateDate") objListViewItem.SubItems.Add(Format(dteFormattedDate, "g"))
I also have to add the variable and then Format the variable in the lvwGroups_Click event when filling in the Groups detail section.
Any thoughts would be appreciated. TIA Hank
|
|
Reply By:
|
Thearon
|
Reply Date:
|
9/11/2006 5:12:28 PM
|
Try this line of code and see if it works for you:
objListViewItem.SubItems.Add( _ Format(DirectCast(objGroupsDS.Tables("Groups").Rows(intIndex).Item( _ "LastUpdateDate"), DateTime), "g"))
Thearon
|
|
Reply By:
|
HenBar
|
Reply Date:
|
9/12/2006 4:55:50 AM
|
Theron
Thanks for you reply and suggestion. While "DirectCast" does not work, (I get a "Specified cast is not valid" error), CType does work and I can use the original code in the lvwGroups_click event.
Thanks for pointing me in the right direction Hank
|
|
Reply By:
|
thomasks
|
Reply Date:
|
9/12/2006 2:22:09 PM
|
quote: Originally posted by Thearon
Kevin,
You really should use the version of Visual Studio that the book is written for. This book was written for Visual Studio .Net 2003.
Thearon
|
|
Reply By:
|
thomasks
|
Reply Date:
|
9/12/2006 2:24:43 PM
|
Thanks Thearon,
I decided to update myself and bought Visual Studio 2005 - Professional Edition. I also bought your VB2005 book and the VB 2005 Databases.
I am making great progress now!
Regards,
Kevin
quote: Originally posted by Thearon
Kevin,
You really should use the version of Visual Studio that the book is written for. This book was written for Visual Studio .Net 2003.
Thearon
|
|
Reply By:
|
earlyman1976FL
|
Reply Date:
|
12/21/2006 10:10:51 PM
|
Tools-> Choose Toolbox items -> OdbcDataAdapter
Okay
Happy Programming!!!
quote: Originally posted by thomasks
Hi,
I'm new to programming. Can I use Visual Studio 2005 Express Edition with this book?
My first issue is on page 50. I cannot see the "ODBCDataAdapter" control in the tool box.
....must I upgrade to Visual Studio 2005 Professional Edition?
Thanks,
Kevin
|
|
Reply By:
|
rikesh
|
Reply Date:
|
1/3/2007 1:11:10 AM
|
hi,all this is from tejas give e-book link of crystal reports
|