Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend