List Based Objects
The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects allowing us to control different parts of the computer using their methods & properties Variables – RAM Controls – Interface DataConnection class – database Introduced a lot of coding concepts, assignment, sequence, selection, validation, functions, parameters to name a few
Overview of Driving Test 2
How do we Manipulate a List of Data?
Array Lists Our list of data… Fred Wilma Barney Betty The code…
The Count Property
Index Numbers Rather like house numbers BUT ---- Zero bound Value Index Fred 0 Wilma 1 Barney 2 Betty 3
RemoveAt Method Value Index Fred 0 Wilma 1 Barney 2 Betty 3 Which record will be removed?
Changing a List Entry What will the following do?
Data Tables We said all of that to introduce this… sproc_tblAddress_SelectAll SELECT * FROM tblAddress
Middle Layer Code How do we get at the results of the query?
Data Table Contents
The Address Class
Copying Data From Data Table to Array