beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 34

background image

26

Example: An integer value of 5 is converted to type roInt automatically because the

AddTail() method expects a

BrightScript Object as its parameter.
BrightScript> list=CreateObject("roList")
BrightScript> list.AddTail(5)
BrightScript> print type(list.GetTail())


Example: Here the ListDir() method returns an roList object containing roString objects:
BrightScript> l=ListDir("/")
BrightScript> for i=1 to l.Count():print l.RemoveHead():next
test_movie_3.vob
test_movie_4.vob
test_movie_1.vob
test_movie_2.vob