VbScript error when declaring any variable with its required data types

后端 未结 1 1975
悲哀的现实
悲哀的现实 2020-12-21 18:33

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

相关标签:
1条回答
  • 2020-12-21 19:17

    In VBScript there is only variants so it would be Dim vString (remove the As String)

    0 讨论(0)
提交回复
热议问题