Object within an object
Username:  
Password:
  > Home
v User Guide
    > Introduction
    > Hello World
    > Flow Control
    > Function Calls
    > Authentication
    > Database access
    > Content Management
    > Remote Calling
    v Object-Oriented
       o Constructor
       o Object function
       o Polymorphism
       o Inheritance
       o Object within an object
    > Other Features
> Reference
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> User Guide >> Object-Oriented >> Object within an object <=  =>      <  1  >  
Object within an object

Reference to an object is done via Variable evaluation.  For example, you can put an object within another object, as in:

var john%name = "John Lee";

var car1%make = "Mitsubishi";

var car1%owner = "john";

display "The {car1%make} car belongs to {{car1%owner}%name}.";

// The Mitsubishi car belongs to John Lee.

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd