如何在VBA中将简单字符串转换为字节数组? [英] How to convert a simple string to Byte Array in VBA?

查看:1487
本文介绍了如何在VBA中将简单字符串转换为字节数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用excel VBA在Byte数组中转换一个简单的字符串。然后这个字节数组用作请求的正文。

I need to convert a simple string in a Byte array using excel VBA. Then this byte array is used as the request's body.

我该怎么做?

谢谢。 / p>

Thanks.

推荐答案

如果您只需要ANSI字符,可以使用StrConv()函数如这里所做的那样

If you only need ANSI characters, you can use the StrConv() function as is done here.

这篇关于如何在VBA中将简单字符串转换为字节数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆