ToInt
HRESULT ToInt(result: [out, retval] long*)
Description
Converts the CDocBuilderValue
object to an integer.
Please note, that for the
.docbuilder
file theCDocBuilderValue.ToInt
method is not used.
Parameters
- result
long*
- The returned integer value.
Example
COM
CoInitialize(NULL);
IONLYOFFICEDocBuilder* oBuilder = NULL;
IONLYOFFICEDocBuilderContext* oContext = NULL;
IONLYOFFICEDocBuilderValue* oGlobal = NULL;
long l;
oBuilder->Initialize();
oBuilder->GetContext(&oContext);
oContext->GetGlobal(&oGlobal);
oGlobal->ToInt(&l);
oBuilder->Dispose();