Box(), Run() – BrightSign BrightScript 3.0 Reference Manual User Manual
Page 54

49
Note: The Rnd() functions utilize a pseudo-random seed number that is generated internally and not accessible to the
user.
Box()
Box(type As Dynamic) As Object:
This function returns an object version of the specified intrinsic type. Objects will be passed through.
Example:
b = box("string")
b = box(b) ' b does not change
Run()
Run(file_name As String, [optional_arg As Dynamic, …]) As Dynamic
Run(file_names As roArray, [optional_arg As Dynamic, …]) As Dynamic
This function runs one or more scripts from the current script. You may append optional arguments, which will be passed
to the
Main() function of the script(s). The called script may also return arguments to the caller script.
If a string file name is passed, the function will compile and run the corresponding file. If an array of files is passed, the
function will compile each file, link them together, and run them.
Example:
Sub Main()
Run("test.brs")
BreakIfRunError(LINE_NUM)