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?