Sunday, June 21, 2015

OScript Data Types

Oscript has a list of data types which can be used for storing data. These can be classified into two categories:

Value Data Types - When passed as a parameter, value data types get copied. Hence any change to copied data does not effect the original. Following are the value data types:

  1. Integer
  2. Real
  3. Boolean
  4. String
  5. Date
  6. Undefined
  7. Object
  8. File
  9. Error

Reference Data Types - When passed as a parameter, a reference of these data types are passed. Any change to passed variable changes the original one as well. Following are the reference data types:

  1. Assoc - an array of key-value pair
  2. Rec Array -a two-dimensional array or collection of multiple Records
  3. List - a one dimensional array. An element of this variable can be of any data type