Concat在Codesys中的两个Wstrings

发布于 2025-02-09 04:40:50 字数 224 浏览 0 评论 0原文

我有一个问题,即Concat(str1,str2)函数不采用两个WSTRINGS,并且没有找到用于WSTRING的cont函数。那我该怎么做呢?

我无法将输入转换为字符串,然后将其返回到WSTRING时,然后将其释放字符串信息。此ws_textout:= string_to_wstring(Concat(“ e”,wstring_to_string(ws_textin))));不起作用。

I have the problem that the CONCAT(str1, str2) function does not take two wstrings and I have not found a concat function for wstring. So how should I do it?

I cannot convert the input to string and then back to wstring as I then loose information of the string. This ws_textOut:=STRING_TO_WSTRING(CONCAT("E ", WSTRING_TO_STRING(ws_TextIn))); does not work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜点 2025-02-16 04:40:50

您可以使用使它们连接。

You can use WCONCAT to concatenate them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文