Plant Simulation字符串处理函数sprint

Plant Simulation字符串处理函数sprint

作者:潘子豪   审校:徐忠芳

使用版本:Plant Simulation V14.0及以上版本

我们在使用Plant Simulation的过程中,经常会对一些字符串进行处理,下面介绍一个字符串处理命令sprint(i,j,k),返回值为string,下面我们以一个例子讲解一下函数的使用。

Plant Simulation字符串处理函数sprint

从工具条中拖入一个方法

Plant Simulation字符串处理函数sprint

Plant Simulation字符串处理函数sprint

在Method中输入如下代码

Plant Simulation字符串处理函数sprint

Plant Simulation字符串处理函数sprint

右键运行该方法,控制台显示AB字符串

Plant Simulation字符串处理函数sprint

通过上述method实现了将多段字符串进行合并处理的功能。

相关阅读