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