Player APIs (BrightScript & Ja...
...
BrightScript
Language Reference

BrightScript Known Issues

1min
subroutine declaration incorrectly allows return type to be defined a subroutine is defined as a function shortcut which returns type void, by either explicitly calling, “return“ or not including a return the brightscript subroutine incorrectly allows a subroutine to declare a return type allowing the subroutine to compile a subroutine can “return” or not include a return, but if a subroutine should return a variable, we recommend declaring a function with a return type see program statements docid\ xjncz5p2xsv5j9geofi13 for more information about subroutines and functions it correctly mentions that a subroutine only returns a void type (“the sub statement can be used instead of function as a shortcut for creating a function with return type void ")