VBScript question

  • Thread starter Thread starter zacks
  • Start date Start date
Z

zacks

I am familiar with how to call a VBScript with Microsoft' Scripting
Control. nd I have found that if you try to execute a script that has a
syntax error, and exception is thrown. What if I merely want to check
the syntax of the script without actually running it?
 
Zack

I expect that a good answer for your question you can get in the newsgroup

microsoft.public.scripting.vbscript.

Most persons active in this newsgroup know probably even more about
JavaScript than VBScript.

I hope this helps,

Cor
 
I appreciate your comment. Let me slightly rephrase my question.

Using Microsoft's Scripting Control to run a script in any of the
available scripting languages, can you perform a syntax check on the
script's code without actually executing it in a VB.NET application?
 
well afaik not built in ,,,,, however you could run the script isolated and
see if a error even t is raised on execution ( sort of sandbox aproach )


regrds

Michel Posseth [MCP]
 
I thought about doing it that way, but the scripts I need to check will
be expecting avariable number of input parameters to actually do their
thing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top