Reputation: 89743
Is the syntax for VBScript and VB.NET exactly the same?
Specifically, would a syntax parser for VB.NET work for VBScript?
Upvotes: 4
Views: 3959
Reputation: 13820
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.
Upvotes: 6
Reputation: 9546
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.
Upvotes: 9