CSCI E-143 CertPrep

Downloadable Code Samples

Fall Term,  2004

for  Chapter 5,  Data Binding:     Reading a Database

for  Chapter 6,  SQL:     DataViewRowState vs. DataRowState

for  Chapter 11,  Printing:     Dialogs and Controls for Printing

CertPrep Home Page

For those of you with too much time,  some zipped files of working samples of code are available for download.   All the routines work on my machine,  and none of them are known to fail on the machines at 53 Church St.   If they don't work on your machine,  for instance because of problems with a database engine,  well....


Chapter 5:  Data Binding and Reading a Database

Download.  

This batch includes the routines I showed in class when we went over  Chapter 5:  Data Binding.

Most of this code is described on the page which discusses code for  reading database tables.   Some routines use a database,  some don't.  


Chapter 6: SQL and DataViewRowState vs. DataRowState

Download.  

These samples are relevant to each part of Chapter 6,  Consuming and Manipulating Data:  Chapter 6,  Part 1  and  Chapter 6,  Part 2.   The description of code for  reading database tables  is still relevant. 

I only showed the first one of these in class,  because I hadn't put the second one together by then.  


Chapter 11:  Dialogs and Controls for Printing

Download.  

This simple routine,  PrintingTest,  shows the effects of various printing Dialogs and controls,  including the output of the events that occur during printing.

There is a lot of diagnostic Debug output,  so be sure to run it under Debug.


Let me know when you find the bugs.   The bugs I already know about I describe in the code.   (There is one case where you have to correct the stated bug before the routine will work.)   You have to look at the code itself in these samples.   That's the point.  


Last  revised  Dec. 29, 2004