I don't remembered if is possible to run a Object by reference and call the object's function?
For example: I am write a process report to import and process data. Report calls different XMLPort based on a setup table. The underline table for XMLPort is a temporary table and I have function to pass the record out. I am use XMLPort.IMPORT("XMLPort No.", InStream), but I can't call the function to get the record back in the process report. In the future, if there is a new format of text file, all I need to do is create a new XMLPort and update setup table. I don't want to create new xmlport variables in the report.