Create a new Brick, named Contestant, and give it 5 Rows each containing two Columns(Name and Score).
The second column(Score) repeats 20 times for each row.
(setq Contestant (new Brick: 5 Name:Object:1 Score:Number:20))
|
Returns: #<Record 123456>
|
Sets the value of the Name field as a Vector for the first row's first repeat.
(setq Contestant[0 0 0] #("Anna Smith"))
|
Returns: #<Record 123456>
|
Sets the value of the Name field as a Vector for the second row.
(setq Contestant[0 0 1] #("John Doe"))
|
Returns: #<Record 123456>
|
Sets the value of the Name field as a Vector for the third row. This example uses a symbol(Name:) instead of an integer index
(setq Contestant[Name: 0 2] #("Jane Baker"))
|
Returns: #<Record 123456>
|
Sets the value of the Score field for the first row and first repeat as 100.0.
(setq Contestant[1 0 0] 100.0)
|
Returns: #<Record 123456>
|
Sets the value of the Score field for the first row and second repeat as 99.0.
(setq Contestant[1 1 0] 99.0)
|
Returns: #<Record 123456>
|
Sets the value of the Score field for the second row and first repeat as 99.0.
(setq Contestant[1 0 1] 99.0)
|
Returns: #<Record 123456>
|
Sets the value of the Score field for the second row and second repeat as 100.0.
(setq Contestant[1 1 1] 100.0)
|
Returns: #<Record 123456>
|
Sets the value of the Score field for the third row and first repeat as 75.0. This example uses a symbol(Score:) instead of an integer index.
(setq Contestant[Score: 0 2] 75.0)
|
Returns: #<Record 123456>
|
Sets the value of the Score field for the third row and second repeat as 75.0. This example uses a symbol(Score:) instead of an integer index.
(setq Contestant[Score: 1 2] 75.0)
|
Returns: #<Record 123456>
|