使用 VBScript 获取字符串中的每个字符 [英] Get each character in a string using VBScript

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

问题描述

有什么方法可以使用 VBScript 从字符串中获取每个字符?我已经使用了 Mid 函数,但我只想知道是否还有其他直接函数可以在使用时返回从字符串开始的每个字符.

Is there any way by which we can get each character from a string using VBScript? I had used the Mid function but I just want to know if there are any other direct functions which when used returns each character starting from a string.

推荐答案

strString = "test"
For i=1 To Len(strString)
    WScript.Echo Mid(strString,i,1)
Next 

这篇关于使用 VBScript 获取字符串中的每个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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