Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

Objects

An object is very similar to a list. The key difference is that objects have named elements instead of numerically indexed elements. The named elements are called properties.

Assume you have a list that contains the name of a special constant and the constants value as follows:

x:=["Pi",3.1415]

You can refer to the constants name using the expression x[0] and its value using the expression x[1]. However, if you define x as an object as follows

x:={name:"Pi",value:3.1415}

you can refer to its name using the expression x.name and its value using the expression x.value.

See Also

Creating Objects

Object Literals

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Online Forms

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2010 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend