Returns an array value by its index.
Name | Type | Description |
key | int | The index of the array value. |
builder = docbuilder.CDocBuilder() context = builder.GetContext() globalObj = context.GetGlobal() api = globalObj["Api"] document = api.Call("GetDocument") charts = document.Call("GetAllCharts") chart = charts.Get(1);
The default[] postfix expression can be also used to get an array value by its index:
property CDocBuilderValue default[int]
builder = docbuilder.CDocBuilder() context = builder.GetContext() globalObj = context.GetGlobal() api = globalObj["Api"] document = api.Call("GetDocument") charts = document.Call("GetAllCharts") chart = charts[1];