Presentation is loading. Please wait.

Presentation is loading. Please wait.

List Based Objects.

Similar presentations


Presentation on theme: "List Based Objects."— Presentation transcript:

1 List Based Objects

2 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

3 Overview of Driving Test 2

4 How do we Manipulate a List of Data?

5 Array Lists Our list of data… Fred Wilma Barney Betty The code…

6 The Count Property

7 Index Numbers Rather like house numbers BUT ---- Zero bound
Value Index Fred 0 Wilma 1 Barney 2 Betty 3

8 RemoveAt Method Value Index Fred 0 Wilma 1 Barney 2 Betty 3
Which record will be removed?

9 Changing a List Entry What will the following do?

10 Data Tables We said all of that to introduce this…
sproc_tblAddress_SelectAll SELECT * FROM tblAddress

11 Middle Layer Code How do we get at the results of the query?

12 Data Table Contents

13 The Address Page Class clsAddressPage AddressNo HouseNo Town Street
PostCode CountyCode DateAdded Boolean Active

14 Copying Data From Data Table to Array


Download ppt "List Based Objects."

Similar presentations


Ads by Google