ToInt
Converts the CDocBuilderValue object to an integer.
Please note, that for the
.docbuilderfile theCDocBuilderValue.ToIntmethod is not used.
Syntax
HRESULT ToInt([out, retval] long* result);
Parameters
| Parameter | Type | Description |
|---|---|---|
| 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();