Advertisement
D98rolb

Errror E2029

Jan 29th, 2024
1,252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.93 KB | None | 0 0
  1. type
  2.   TFINode = (FI526A, FI528A, FI544A, FI529A, FI516A, FI552A, FI572A, FI551A, FI510A, FI550A, FI503A, FI548A, FI505A, FI530A, FI599A, DmeErrorMessage);
  3.  
  4. function TCustomsExportMessageHandler.GetExportTypeAndMessageId(const aDocument: string; out aMessageType: string; out aMessageId: string): Boolean;
  5. var
  6.   vDoc: XMLIntf.IXmlDocument;
  7.   sNode: string;
  8.   FINode: TFINode;
  9. begin
  10.   Result := true;
  11.   vDoc := NewXmlDocument;
  12.   vDoc.Version := '1.0';
  13.   vDoc.Encoding := 'UTF-8';
  14.   vDoc.LoadFromXml(aDocument);
  15.   for FINode := Low(TFINode) to High(TFINode) do
  16.   begin
  17.     sNode := TRttiEnumerationType.GetName<TFINode>(FINode);
  18.     if Assigned(vDoc.ChildNodes.FindNode(sNode)) then
  19.     begin
  20.       if FINode = FI526A then   // Error E2029
  21.       begin
  22. //        aMessageType := 'EXPREG';
  23. //        aMessageid := vDoc.ChildNodes.FindNode('FI526A').ChildNodes.FindNode('Identification').Text;
  24.       end;
  25.     end;
  26.   end;
  27. end;  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement