If I know the ID of the XmlPort, how can I know its name as text in a local procedure?

ACG
ACG Member Posts: 2
trigger
OnInitReport()
begin
expXMLPORT(Xmlport::MyXmlportName);
end;

var
XmlFileName: Text[30];

local procedure expXMLPORT(IDXml: Integer)
var
OutStreamVar: OutStream;
begin
XmlFileName := Here I need get "MyXmlportName" as text

Answers

  • vaprog
    vaprog Member Posts: 1,162
    You can use the Object or AllObj table to get the name.
    If you need the caption instead, you can use the Object or AllObjWithCaption table.
  • ACG
    ACG Member Posts: 2
    Thanks