13.07.2015 Views

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

Using Caché Studio - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4Adding Properties to a ClassThis chapter describes how to add properties in a class definition.The data, or state, of an object is stored in it properties. Every class definition may contain zero ormore property definitions.You can add a new property to a class in two ways:• Adding the property to the class definition in the Class Editor.• <strong>Using</strong> the New Property wizardTo add a property using the Class Editor, position the cursor on a blank line in the Class Editor andenter a property declaration:Class MyApp.Person Extends %Persistent [ClassType = persistent]{Property Name As %String;Property Title As %String;}Alternatively, copy an existing property declaration, paste it into a new location, and edit it.For details on property definitions see the Class Definition Language reference.4.1 New Property WizardTo open the New Property wizard, select Class > Add > New Property . Alternatively, right-click theClass Inspector and select Add > New Property or, if only properties are displayed (Property headsthe left column), right-click and select New Property or select the New Property icon,toolbar., from the<strong>Using</strong> <strong>Caché</strong> <strong>Studio</strong> 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!