I have byte array. I want this array to be converted to a string.
Example:
Array = 124,123,123,123
String = "124123123123"
Thanks for help.
This prints "124123123123"
dim a: a = array(124,123,123,123)
dim s: s = join(a, "")
wscript.echo(s)
However if the values are bytes then interpreting them as a character gives "|{{{"
dim i, z
for i = 0 to ubound(a)
z = z & chr(a(i))
next
wscript.echo(z)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.