我有字节数组。我希望将此数组转换为字符串。
示例:
Array = 124,123,123,123
String = "124123123123"
感谢您的帮助。
答案 0 :(得分:0)
这会打印"124123123123"
dim a: a = array(124,123,123,123)
dim s: s = join(a, "")
wscript.echo(s)
但是,如果值为 bytes ,则将它们解释为字符会给出"|{{{"
dim i, z
for i = 0 to ubound(a)
z = z & chr(a(i))
next
wscript.echo(z)