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

ACGACG 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

  • vaprogvaprog Member Posts: 1,150
    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.
  • ACGACG Member Posts: 2
    Thanks
Sign In or Register to comment.