Your Digital Media Has Never Looked So Good

 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Thu Aug 14, 2014 1:56 pm

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.
Last edited by EnTerr on Mon Dec 01, 2014 5:42 pm, edited 1 time in total.
 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Thu Nov 27, 2014 8:13 pm

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"?
 
User avatar
RokuKC
Posts: 315
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

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

Mon Dec 01, 2014 3:12 pm

Done, thanks for the report.
 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Mon Dec 01, 2014 5:41 pm

Image

Who is online

Users browsing this forum: No registered users and 10 guests