Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 25th, 2008, 02:26 PM
Authorized User
Points: 406, Level: 7
Points: 406, Level: 7 Points: 406, Level: 7 Points: 406, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Florida
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?

Thanks

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASSIGNING A JAVA SCRIPT VARIABLE TO A XSL VARIABLE SOMANATHAN10 XSLT 1 February 21st, 2007 04:26 AM
Binding Gridview with variable number of records KamalRaturi ASP.NET 2.0 Professional 2 August 26th, 2006 03:05 PM
Object variable or With block variable not set tparrish Pro VB Databases 1 May 25th, 2005 03:08 PM
Help with assigning a variable from a binding dfranczak ADO.NET 0 July 17th, 2003 02:50 PM



All times are GMT -4. The time now is 02:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.