VBScript 中的 CRLF [英] CRLF in VBScript

查看:25
本文介绍了VBScript 中的 CRLF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 VBScript 的新手.我正在尝试编写一个函数来识别打印行中的 CRLF.你能帮我吗?

I am new to VBScript. I am trying to write a function that will recognize if the CRLF in the printed Line. Can you please help me?

谢谢

推荐答案

你可以简单地使用 result = Instr(yourString, vbCRLF).

如果yourString中存在CRLF字符序列,它将返回一个大于0的索引,否则返回0.

It will return an index greater than 0 if the CRLF character sequence exists in yourString, and 0 otherwise.

这篇关于VBScript 中的 CRLF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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