[Year 12 SofDev] data structures - records

Peter Hatigan hatigan.peter.h at edumail.vic.gov.au
Thu Nov 25 13:29:40 EST 2010


SD U3O2 KK03- types of data structures, including one-dimensional arrays,
records and files

 

 

Does 'records' refer to:

 

Creating links to a database (Access) and manipulating records through
datasets etc.

 

Or, to creating and manipulating records within the code?

 

For example:

 

Type

    Str25    = String[25];

    TBookRec = Record

                Title, Author,

                ISBN  : Str25;

                Price : Real;

               End;

Var

    myBookRec : TBookRec;

 

Begin

myBookRec.Title  := 'Some Book';

myBookRec.Author := 'Victor John Saliba';

myBookRec.ISBN   := '0-12-345678-9';

myBookRec.Price  := 25.5;

 

Writeln('Here are the book details:');

Writeln;

Writeln('Title:  ', myBookRec.Title);

Writeln('Author: ', myBookRec.Author);

Writeln('ISBN:   ', myBookRec.ISBN);

Writeln('Price:  ', myBookRec.Price);

Readln;

End.

 

 

Or, both?

 

 

Peter Hatigan


Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20101125/59e7d18f/attachment-0001.html 


More information about the sofdev mailing list