I´ve found why my call to SetAttribute is failing: because OleVariant is not declared to the Script Engine and so the SetAttribute method is not registered too (but no errors are emitted)
Although I can compile some test scripts, the problem now is to make it run properly.
I have a application variable called XMLDoc: TMXLDocument that I can access on my scripts. For example
LogInfo(XMLDoc.XML.Text); works OK when I run the scripts, but
procedure OnMapEvent(var Value:Variant); //LINE1
var
lNode: IXMLNode;
begin
lNode := XMLDoc.DocumentElement; (AV occurs HERE)
LogInfo('lNode.NodeName: ’ + lNode.GetNodeName);
end;
does not work fine, ie, trying to access any Interface reference is problematic. DocumentElement should result a IXMLNode, but I get an AV (Exception: Access violation at address 0040820C in module ‘Flow.exe’. Read of address 00000000) when executing the red line and basically nothing else works.
My question is:
Does Pascal Script support correctly Interface objects or Am I doing something wrong?
Do you have a time frame/schedule for this? We need to know about it because my company needs to make a decision as we have customers waiting for a specific feature to be implemented.