【发布时间】:2015-09-30 15:55:22
【问题描述】:
在询问用户是否想要介于 '' 之间后,我必须读取 2 个值之间的值。
如果用户在文本中选择 1 为例
'Hi' My name is 'Kev'in and i'm happ'y' to be 'there'
他会有
'Hi' 'Kev' 'y' 'there'
在文本文件中。如果他选择2,他将拥有
My name is in and i'm happ to be
我现在正在使用
Do While objScriptFile.AtEndOfStream <> True
strCurrentLine = objScriptFile.ReadLine
intIsComment = InStr(1,strCurrentLine,"'")
If intIsComment > 0 Then
objCommentFile.Write strCurrentLine & vbCrLf
End If
Loop
Else
目前它只读取两个值(在 '' 之间而不是在之间),但我不知道如何更改它。
【问题讨论】:
-
为什么是
'Hi' 'Kev' 'y' 'there'而不是'Hi' 'Kev' 'm happ' ' to be '这背后的逻辑是什么?
标签: vbscript