Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

New

Creates a new instance of an object.

Synopsis

New object

Arguments

The New statement has the following argument:

object Name of the object for which a new instance should be created.

Examples

The following examples demonstrate how to use the New statement:

person = New User.Person

output = New %File("\PersonList.txt")
Copy code to clipboard

See Also