Objects and Classes

An object is a mixture of code and data that you control as a unit. An object can be a piece of a program, like a control or a window.

When you make a program in ViviFire, you constantly use objects. You can use objects supplied by ViviFire, such as controls and data access objects. You can use objects supplied by other programmers. Also, you can make objects for your program only.

You can think of objects as building blocks for programs. They let you write a piece of code one time and use it again and again.

Objects and classes

TODO

To create an object from a class

SomeClass #my_object
New SomeClass #my_object

Multiple instances

TODO

Object members

TODO

Member access

You access a named member of a class by specifying the following, in order: the handle to the object, a period or "dot" (.), and the name of the member.

#my_object.SomeMember = some_value

Properties

You use property procedures when:

For more information, see Property Procedures.

Methods

TODO

Events

TODO

Instance members and shared members

TODO

To access a nonshared member of an object

TODO

To access a shared member of a class

TODO

Differences between classes and library modules

TODO

Reusing classes

TODO

Relationships among objects

TODO

Hierarchical relationships

TODO

Containment relationships

TODO

Collections

TODO

See also