4

Is the syntax for VBScript and VB.NET exactly the same?

Specifically, would a syntax parser for VB.NET work for VBScript?

4
  • 2
    I'm tempted to say, you could have tried and figured it out yourself pretty quickly! Commented Apr 27, 2011 at 18:57
  • 1
    Downvoter please comment, and also @Jean-FrançoisCorbett, There's actually no way to try all possibilities. Commented Sep 16, 2014 at 9:08
  • 1
    Why try all possibilities? It just takes one counterexample to show that they are not exactly the same. Commented Sep 16, 2014 at 9:15
  • 1
    @Jean-FrançoisCorbett, That comment's a tiar. And besides, that's the point of the question. To see if there's such a counterexample. Commented Sep 18, 2014 at 23:20

3 Answers 3

9

No, they are not the same.

vb.net is a jit-compiled strongly typed object oriented language that runs on the .net framework; vbscript is interpreted. Syntax is different in many subtle ways, mostly relating to scoping and the keywords necessary for vb.net to support true object oriented concepts that vbscript just doesn't have.

Sign up to request clarification or add additional context in comments.

Comments

6

No, the syntax for VBScript is very similar to pre-.NET Visual Basic (i.e., VB6). VB.NET is completely different. But even compared to VB6, VBScript is still watered down.

Comments

4

No, the syntax for vbscript and vb.net are not exactly the same.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.