Item i for i in f do { currentModule = requestHandleOfCurrentModule(i) //currentModule = read(fullName(i), false, true) //the 2nd parameter won't open the module in the GUI (false) or will it open (true) //currentModule = read(fullName(i), true, true) //the 2nd parameter won't open the module in the GUI (false) or will it open (true) //Debug print "doExcel: " name(currentModule) "\n" Object o Column c string s int doMain int row = 0 int col int count //Sets the used view to the view which was choosed in the GUI myMainView = get mainView //Check if view is in current module available if(checkViewAvailability(myMainView, currentModule)) { print "isExcelAlreadyStarted: " isExcelAlreadyStarted "\n" if (!excelInit(currentModule)) { delete args //delete excelTrigger return } //Debug //print "viewWasFound: " viewWasFound "\n" doMain = get mainChoice includeColumnTitles = get titleToggle preserveRichTextFormatting = get preserveRichTextFormattingToggle if (includeColumnTitles) { col = 0 row++ //Debug print "TestcurrentModule: " name(currentModule)"\n" print "TestmyMainView: " myMainView "\n" //for c in m do for c in currentModule do //c is from type column! { if (main(c) && doMain == mainIgnore) { continue //Skip iteration only if object c is main text column AND "Ignore" is choosen in GUI } col++ s = title(c) //Stores title of column c in string s if (s != (NLS_(""))) { setCell(row, col, s, null, NO_HEADING) } } } //Debug print "#Col: " col "\n" print "s: " s "\n" //initProgress(excelBox, m) initProgress(excelBox, currentModule) initNotDisplayedOpenModules() //Debug //print "myMainView: " myMainView "\n" //for object in module do for o in currentModule do { ...