Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
EnTerr
Level 8

Bug: String(n, str) on fw3 [fix: documented as feature]

String (n as Integer, str as String) as String does not perform as expected on firmware 3.
Cue the doco example:
BrightScript Debugger> print String(4,"ab") ' prints: abababab
aaaa

Creates platform fragmentation: code using string() will get different results on fw3 and fw5.
0 Kudos
3 Replies
EnTerr
Level 8

Re: Bug: String(n, str) on fw3

Dear Roku* -
would you mind updating docs to mention that on fw3, String(int, str) concatenates N times only the first character of str, not all of str?

Seems unlikely that will be fixed in fw3, so document the "feature"?
0 Kudos
Roku Employee
Roku Employee

Re: Bug: String(n, str) on fw3

Done, thanks for the report.
0 Kudos
EnTerr
Level 8

Re: Bug: String(n, str) on fw3

0 Kudos