"RokuKC" wrote:
It can be done more simply.
Given:
s = chr(34) + "hello" + chr(34)
or equivalently:
s = """hello"""
You can do:
s = s.Replace(chr(34), "")
or equivalently:
s = s.Replace("""", "")
How safe is the second option? Are there any Roku's running firmware less than 6.2, other than classic models?
String Literals
Type String: String in quotes, e.g. "this is a string".
Note: The quotation mark character can be embedded in a string literal using two consecutive quotation marks.
E.g. s="""" : ? len(s), asc(s) outputs 1, 34.
This feature is available in firmware 6.2 or later.