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: 
EnTerr
Roku Guru

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 3
EnTerr
Roku Guru

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
RokuKC
Roku Employee
Roku Employee

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

Done, thanks for the report.
0 Kudos
EnTerr
Roku Guru

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

0 Kudos