Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 550
Pacerier Avatar asked Dec 01 '22 02:12

Pacerier


2 Answers

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.

like image 169
Tahbaza Avatar answered Dec 04 '22 01:12

Tahbaza


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.

like image 34
Devin Burke Avatar answered Dec 04 '22 03:12

Devin Burke