Docsity

VBScript: Understanding Operators in this Scripting Language, Study notes of Computer Numerical Control

Partial preview of the text

Download VBScript: Understanding Operators in this Scripting Language and more Study notes Computer Numerical Control in PDF only on Docsity!

VBScript

Introduction

  • (^) Visual Basic Script (VBScript) is a subset of Microsoft Visual Basic® used in World Wide Web XHTML documents to enhance the functionality of a Web page
  • (^) Microsoft’s Internet Explorer Web browser contains a VBScript scripting engine (i.e., an interpreter) that executes VBScript code
  • (^) VBScript’s arithmetic operators are similar

to the JavaScript arithmetic operators.

  • (^) Two major differences are
    • The division operator , ** , which returns

an integer result.

  • The exponentiation operator , ^ , which

raises a value to a power.

VBScript’s comparison operators

  • (^) Only the symbols for the equality operator and the inequality operator are different in JavaScript.
  • (^) In VBScript, these comparison operators may also be used to compare strings.
  • (^) VBScript provides 2 operators for string

concatenation

  • Plus sign, +
  • Ampersand ,&, formally called the

string concatenation operator.

s1 = "Pro"

s2 = “gram”

s3 = s1 & s2 or s3 = s1 + s