select ObjectName ; from (lcDBC) ; into array gaTables ; where ObjectType = "Table" and ! deleted() for i = 1 to _tally gaTables[i] = alltrim( gaTables[i] ) endfor select ObjectName ; from (lcDBC) ; into array gaViews ; where ObjectType = "View" and ! deleted() for i = 1 to _tally gaViews[i] = alltrim( gaViews[i] ) endfor>We are already using 'set database to' before we call the code, any other ideas?