230 Chapter 5
Storing and Retrieving Test Results
Using Records to Store Mixed Data Types
Unbuilding a Record in a Single Step
To extract all record fields and get a list of the field names and their types,
use the
UnBuild Record object.
1. Open the
setfield.vee program. Delete all objects after Build
Record
.
2. Select
Data ⇒ UnBuild Data ⇒ Record and place it under Build
Record
, switch the open view, and connect the output of Build
Record
to the input of UnBuild Record. Add another data output pin
to
UnBuild Record and rename the A, B, and C outputs to the field
names:
testname, time, and data.
3. Select an
AlphaNumeric display and clone it four times. Connect the
five displays to the five output terminals on
UnBuild Record. You will
have to enlarge the displays for
Name List, Type List, and data to
accommodate arrays. Also, reconfigure the time display to present time
in day/month/year and hours, minutes using a 12 hour format.
4. Run the program and save it as
unbuild.vee. It should look like Figure
5-13.