Docsity

Compuer Science - VB Data Types and Control Structures - Presentation, Study notes of Computer Numerical Control

Partial preview of the text

Download Compuer Science - VB Data Types and Control Structures - Presentation and more Study notes Computer Numerical Control in PDF only on Docsity!

VBScript Data Types and Control Structures

Data Types and Control Structures

  • (^) VBScript has only one data type— variant— that is capable of storing different types of data
  • (^) (e.g., strings, integers, floating-point numbers etc.).
  • (^) a variant contains numeric information, it will be treated as a number; if it contains string information, it will be treated as a string.

VBScript control structures

  • (^) Used for controlling program execution.
  • (^) every VBScript control structure ends with one or more keywords (e.g., End If, Loop, etc.).
  • (^) Keywords delimit a control structure’s body— not curly braces (i.e., {}, as in JavaScript).