Wrox Programmer Forums
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 February 25th, 2008, 02:26 PM
Authorized User
Join Date: Aug 2005
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
Default Binding A Variable

I am using your example "Dataset Example" and the example covers everthing I need fo an application that I am working on. However there is one situation that has me baffled.

Thre is an integer field in my database that I need to convert to a double. For example:

1 = .073044445 which represents one week
2 = .092266667 which represents two weeks
3 = .011538490 which represents three weeks

I have an integer defined which I will make the nevessary conversions for display to the user but I cant find any indication in the Chapter 16 example of how to bind a variable.

Following the examples in the text I tried this code which did not work:

intPBT.DataBindings.Add("Integer", myDV, "PBT")

PBT is the name of the field in the database.

Did I miss or misunderstand something in the text?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Gridview with variable number of records KamalRaturi ASP.NET 2.0 Professional 2 August 26th, 2006 02:05 PM
Object variable or With block variable not set tparrish Pro VB Databases 1 May 25th, 2005 02:08 PM
Help with assigning a variable from a binding dfranczak ADO.NET 0 July 17th, 2003 01:50 PM

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