Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?


Assigns an object reference to a variable or property.


Let objectvar = objectexpression 


objectvar Name of the variable or property; follows standard variable-naming conventions.
objectexpression Expression consisting of the name of an object, another declared variable of the same object type, or a function or method that returns an object of the same object type.


In Caché Basic, the Let statement is functionally identical to the Set statement. Refer to the Set statement for further details.