Skip to main content
Version: 9.0.2

sb.getValue

sb.getValue(key[, key2, ...])

Get the value of a variable from the data manager. A nil is returned for any values that do not match a key in the data manager.

Parameters

ParameterTypeDescription
keystringThe key whose value should be extracted from the data manager.

Returns

TypeDescription
anyThe value associated with the data manager entry for the key, or null if no entry exists. If multiple keys are specified, then multiple return values will be generated matching the argument order.

Example

function getControlWidth(context) {
// This will extract the width of the control 'my_control' on the layer 'my_layer'
var value = sb.getValue("my_layer.my_control.grd_width");
print("The width of the control is " + value.toString(10));
}