Maptitude GISDK Help

Object Properties

 

Object properties are defined by the following syntax:

 

self.PropertyName = expression

 

The following example creates several object properties:

 

Class "Point" (coord, ID, name)

 

     Init do

          self.coord = coord

          self.ID = ID

          self.name = name

          endItem

 

endClass

 

Object properties have object scope. They can be referenced in macros external to the class by using the following syntax:

 

Val = Obj.PropertyName

 

You can also assign a value to an object property from an external macro by using the following syntax:

 

Obj.PropertyName = expression

 

If you try to do this from an external macro before the object property exists then you will get a macro error.

 

 

©2025 Caliper Corporation www.caliper.com