All Cadcorp SIS API Methods

SetListFormula Method

Description

Sets the value of a property on items is a Named List using the result of an expression.

Syntax

Visual Basic
Public Function SetListFormula( _
   ByVal list As String, _
   ByVal propertyName As String, _
   ByVal formula As String _
) As Integer

Parameters

list
The Named List containing the items whose property is to be set.
 
propertyName
The name of the property or attribute to set.
 
formula
The expression to evaluate and apply the result as the named property.

Remarks

Available: GEO D OD OM SISpy

Groups:

Example

sis.SetListFormula ("Land Parcels", "Hectares#", "_area# / 10000")

Sets the value of the Hectares# attribute to items in the Named List, by dividing the area of each item by 10000.

The attribute will be created if it does not exist.