FOR EACH oObj IN tcObj.OBJECTS ... ... *** this is original Greg's code IF PEMSTATUS(oObj,"Objects",5) IF oObj.OBJECTS.COUNT>0 this.setLocale( oObj ) ENDIF ENDIF *** this is my copy of the original IF PEMSTATUS(oObj,"Pages",5) IF oObj.Pages.COUNT>0 this.setLocale( oObj ) ENDIF ENDIF NEXT