声明具有所需数据类型的任何变量时出现 VbScript 错误 [英] VbScript error when declaring any variable with its required data types
本文介绍了声明具有所需数据类型的任何变量时出现 VbScript 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的 .VBS 文件中,每当使用任何此类声明时,我都会收到错误.为什么会这样,有什么想法吗?
In my .VBS file, whenever using any such declaration, I am getting error.Why so,any ideae?
Option Explicit
Dim vString as String
错误是:预期的语句结束"
Error is : "Expected end of Statement"
我无法声明任何具有所需数据类型的变量.
I could not declare any variable with its required data types.
推荐答案
在 VBScript 中只有变体,所以它会是 Dim vString
(删除 As String
)
In VBScript there is only variants so it would be Dim vString
(remove the As String
)
这篇关于声明具有所需数据类型的任何变量时出现 VbScript 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文