Skip to main content

ToInt

Converts the CDocBuilderValue object to an integer.

note

This method is not available for JS.

Syntax

def ToInt(self) -> int

Parameters

This method has no parameters.

Example

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
nGlobal = globalObj.ToInt()