TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

CreateArray

def CreateArray(self, length);

Creates an array value, an analogue of new Array (length) in JS.

Please note, that for the .docbuilder file the CDocBuilderContext.CreateArray method is not used.

Parameters:

Name Type Description
length int The array length.

Example

Python

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
content = context.CreateArray(1)