Evaluates the specified expression in the layer's scripting space and returns the result.
object.Evaluate ( Expression ) |
- Expression
- Required. A String that represents the expression to be evaluated
Variant
The Evaluate method can be used to return the value of a variable defined and used by the Layer's scripting space from another scripting space. For example, if the variable 'lngValue' is defined in the APL or VBS file of the layer 'Layer1', you can retrieve it's value in an applet via the following code:
Dim lngExtractedValue
lngExtractedValue = Map.Layers("Layer1").Evaluate("lngValue")
Dim lngExtractedValue
lngExtractedValue = Map.Layers("Layer1").Evaluate("lngValue")