Pacerier
Pacerier

Reputation: 89743

VBScript vs VB.NET, equal syntax?

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

Answers (3)

Devin Burke
Devin Burke

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

johnny
johnny

Reputation: 41

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

Upvotes: 4

Tahbaza
Tahbaza

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

Related Questions