跳到主要内容

CreateUndefined

Creates an undefined value. This method returns the current context and calls its CreateUndefined method.

Please note, that for the .docbuilder file the CDocBuilderValue.CreateUndefined method is not used.

Syntax

def CreateUndefined();

Example

Python

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
undefined = api.CreateUndefined()