function CreateActiveXObject(const ObjectClass: String): <External Object Instance>
The CreateActiveXObject function creates an external ActiveX object instance (Internet Explorer only) and returns it as the result.
You must always cast the result of this function to the desired external class in order to be able to use the resulting instance in your code.
Examples
var
TempDocument: TDocument;
begin
// Must always cast the result to the desired class
TempDocument:=TDocument(CreateActiveXObject('Microsoft.XMLDOM'));
TempDocument.LoadXML(Value);
end