vbscript语法检查,无需运行 [英] vbscript syntax checking without running

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

问题描述

我是否可以知道不运行vbscript语法即可进行检查..?

may I know how vbscript syntax checking can be done without runing..?

推荐答案

在这里看看:
IActiveScriptParse :: ParseScriptText [
Take a look here:
IActiveScriptParse::ParseScriptText[^]


From the remarks section:
If the scripting engine is in the initialized state, no code will actually be evaluated during this call; rather, such code is queued and executed when the scripting engine is transitioned into (or through) the started state. Because execution is not allowed in the initialized state, it is an error to call this method with the SCRIPTTEXT_ISEXPRESSION flag when in the initialized state.

So it should allow you to have the code parsed without execution ...

Regards
Espen Harlinn


没有运行VBScript的语法检查方法.脚本宿主不支持您要执行的操作,用于添加脚本支持到应用程序的基于COM的脚本控件也不支持.

除非找到第三方工具来执行此操作,否则您将无法做到这一点.
There is no method of syntax checking a VBScript without running it. The script host doesn''t support what you want to do, neither does the COM-based Script Control used to add scripting support to applications.

Unless you find a third party tool to do this, you don''t have a way of doing it.


这篇关于vbscript语法检查,无需运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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