tvkrnsky
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2019
07:23 AM
I'm running OS 9.1 and getting the following:
Brightscript Debugger> ? CreateObject("roDeviceInfo").getClockFormat() 12h Brightscript Debugger> ? type(CreateObject("roDeviceInfo").getClockFormat()) String
The documentation states that this should be an Integer: either 0 or 1.
Has this function always returned a String or must we handle both return types?
1 Solution
Accepted Solutions


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2019
03:35 PM
It has always returned a string: "12h", "24h", or "" (hypothetical in case of other/error). The documentation was apparently not written to match the implementation due to some mixup.
1 REPLY 1


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2019
03:35 PM
It has always returned a string: "12h", "24h", or "" (hypothetical in case of other/error). The documentation was apparently not written to match the implementation due to some mixup.