Forum Discussion
4 Replies
- RokuKCRoku EmployeeMessy though it may be, that is the documented behavior.
http://sdkdocs.roku.com/display/sdkdoc/ ... erasString
http://sdkdocs.roku.com/display/sdkdoc/ifIntOps - belltownRoku Guru
"lumpenprole" wrote:
So, it seems that StrI() introduces a leading whitespace, whereas ToStr() does not. Just thought I'd let someone know.
I don't think I've ever used Strl(), for that reason. - KomagRoku GuruWhen you print to console, it apparently uses StrI(), so I'm in the habit of avoiding spaces since it will add one, such as:
PRINT "x is" x ", y is" y
instead of
PRINT "x is " x ", y is " y - TheEndlessChannel SurferThe extra space is for the sign. If you use it on a negative integer, there won't be an empty space. I almost always use .ToStr(), but you could always wrap the StrI()/Str() call in a Trim() to strip the white space.