beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 28

background image

20

CopyFile(source As String, destination As String) As Boolean: Copies the file at the specified
source file-path name to the specified destination file-path name. The function returns True if successful and False
in the event of failure.

MoveFile(a As String, b As String) As Boolean: Moves the specified source file to the specified
destination. The function returns True if successful and False in the event of failure.

Note: Both path names must be on the same drive.

strtoi(target_string As String) As Integer: Converts the target string to an integer. Any non-integer
characters (including decimal points and spaces), and any numbers to the right of a non-integer character, will not
be part of the integer output.

rnd(a As Dynamic) As Dynamic

RunGarbageCollector() As roAssociativeArray: Destroys objects that are currently in a state of circular
reference counting. BrightScript normally removes any objects that become unreferenced as part of its automated
garbage collection algorithm. However, objects that reference each other will never reach a reference count of zero,
and will need to be destroyed manually using this method. This method is useful when destroying old presentation
data structures and generating a new presentation. This method returns an associative array outlining the results of
the garbage-collection process.

GetDefaultDrive() As String: Returns the current default drive complete with a trailing slash. When running
autorun.brs, the drive containing the autorun is designated as the current default.

SetDefaultDrive(a As String): Sets the current default drive, which does not need to include a trailing
slash. This method does not fail; however, if the specified default drive does not exist, it will not be possible to
retrieve anything.

EnableZoneSupport(a As Boolean)

EnableAudioMixer(a As Boolean)

Pi() As Double: Returns the value of pi as a double-precision floating-point number.

ParseJson(json_string As String) As Object: Parses a string formatted according to the RFC4627
standard and returns an equivalent BrightScript object, which can consist of the following: Booleans, integers,