Error with automation variabel?

SuDSuD Member Posts: 102
I m getting an error,when try to create a automation variable..
Any solution ??
5nldnemnc0fj.png

Some code:

IF ISCLEAR(XMLDocIn) THEN
CREATE(XMLDocIn,TRUE,TRUE);
MESSAGE('3');
IF ISCLEAR(RootNode) THEN
CREATE(RootNode,TRUE,TRUE);
RootNode := XMLDocIn.documentElement;
IF FindNodes(RootNode, 's:Body/GenerateWayBillResponse/GenerateWayBillResult',
PointtoHeaderCaption) THEN BEGIN
PointtoHeaderCaption.reset;
PointtoHeaderContent := PointtoHeaderCaption.nextNode;
WHILE NOT ISCLEAR(PointtoHeaderContent) DO BEGIN
WITH LocAPIrequest DO BEGIN
IF FindNode(PointtoHeaderContent,'a:AWBNo',ReturnNode) THEN
IF ReturnNode.text <> '' THEN
AWBNo:=ReturnNode.text ELSE AWBNo:='';
IF FindNode(PointtoHeaderContent,'a:IsError',ReturnNode) THEN
IF ReturnNode.text <> '' THEN
IsErrorInWayBillGen:=ConvertToBoolean(ReturnNode.text);

RootCode is a automation variable of 'Microsoft XML, v3.0'.IXMLDOMNode..

Answers

Sign In or Register to comment.