Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2010 > BOOK: Beginning Microsoft Visual Basic 2010
|
BOOK: Beginning Microsoft Visual Basic 2010
This is the forum to discuss the Wrox book Beginning Visual Basic 2010 by Thearon Willis, Bryan Newsome; ISBN: 9780470502228
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Microsoft Visual Basic 2010 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 May 1st, 2013, 06:10 AM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 16 - Data Binding & Option Strict On

If I use Option Strict On, I get a problem with the btnAdd_Click event code, the line below gets an error saying that "Option Strict disallows late binding":-

Code:
objCommand.Parameters.AddWithValue("@au_id", BindingContext(objDataView).Current("au_id"))
I assume I need to convert this to early binding (or turn off Option Strict - but I do not want to do that).

How can I solve this error?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Having Problem with CHAPTER 16 Data Binding Adrian101 BOOK: Beginning Microsoft Visual Basic 2010 0 February 10th, 2011 03:29 PM
Option Strict On disallows late binding. binici ASP.NET 2.0 Basics 2 March 2nd, 2007 07:38 PM
Option Strict on / Late Binding (p.535) irish_songbird BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 October 18th, 2006 12:51 PM
Option Strict Conversion Problem Little Shell VB.NET 2002/2003 Basics 1 July 17th, 2006 01:30 PM
Option Strict kevin777 VB.NET 2002/2003 Basics 2 October 10th, 2003 11:38 PM





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