1234567891011121314151617181920212223 |
- SuperStrict
- Framework Brl.ObjectList
- Import Brl.StandardIO
- ' create an object list to hold some objects
- Local list:TObjectList = New TObjectList
- ' add some string objects to the end of the list
- list.AddLast("one")
- list.AddLast("two")
- list.AddLast("three")
- ' request the first element in the list and cast it (back) to a string
- ' cast is needed as the function returns "object" rather than "string"
- Local value:String = String(list.First())
- Print value
- ' outputs:
- ' one
|