Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
belltown
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

In the Component Reference, ifPosterScreen.SetListStyle() lists the "rounded-rect-16x9-generic" poster style, which is not implemented for the roPosterScreen component, only on the roSpringboard.

See http://forums.roku.com/viewtopic.php?p=250840
0 Kudos
belltown
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

0 Kudos
belltown
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

In the BrightScript Language Reference, section 4.12 Script Libraries, the line:
bslCore = ReadAsciiFile("common:/LibCore/1.0/bslCore.brs")

should read:
bslCore = ReadAsciiFile("common:/LibCore/v30/bslCore.brs")
0 Kudos
belltown
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

In the Component Reference, isRemoteKeyPressed is missing from the roListScreenEvent documentation.
0 Kudos
Komag
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

FIXED
In Brightscript Language Reference, section FOR EACH, brackets are used instead of parentheses:
http://sdkdocs.roku.com/display/sdkdoc/ ... emINobject

In the Example, for deleting a key is says:
aa.delete[n]
should be
aa.delete(n)
0 Kudos
EnTerr
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

0 Kudos
lmarder
Visitor

Re: SDK Docs: links to fix, missing/broken/etc

Fixed.
http://sdkdocs.roku.com/display/sdkdoc/roPosterScreen

poster.SetBreadcrumbText"[location1]", "[location2]")


is missing an opening parenthesis
0 Kudos
Komag
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

In 3.7.10 Logical and Bitwise Operators, (BrightScript Language Reference)
The example seems wrong:
if count > 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero

But if count is zero, then 0 > 0 is false so it WILL evaluate total / count and cause the runtime error

Probably it should be:
if count >= 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero
0 Kudos
Komag
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

Fixed.
(BrightScript Language Reference) 4.9 Scope

If in function scope and that function is not a method in and object, "m." also references the global associative array accessed with GetGlobalAA().

Typo: it should be "in an object" (not "and")
0 Kudos
RokuMarkn
Visitor

Re: SDK Docs: links to fix, missing/broken/etc

"Komag" wrote:
In 3.7.10 Logical and Bitwise Operators, (BrightScript Language Reference)
The example seems wrong:
if count > 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero

But if count is zero, then 0 > 0 is false so it WILL evaluate total / count and cause the runtime error


The example is correct. When the first clause of an AND is false, the second doesn't need to be evaluated.

--Mark
0 Kudos